Class FirestoreDataAttribute
Attribute indicating that a type is intended to be used with Firestore.
Inherited Members
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Interface|AttributeTargets.Delegate)]
public sealed class FirestoreDataAttribute : Attribute
Constructors
FirestoreDataAttribute()
Constructs a new instance with default values for options.
Declaration
public FirestoreDataAttribute()
FirestoreDataAttribute(UnknownPropertyHandling)
Constructs a new instance with the given handling for unknown properties.
Declaration
public FirestoreDataAttribute(UnknownPropertyHandling unknownPropertyHandling)
Parameters
Type | Name | Description |
---|---|---|
UnknownPropertyHandling | unknownPropertyHandling | The unknown property handling strategy to use. |
Properties
ConverterType
A custom converter type to use for serializing and deserializing the attributed type.
Declaration
public Type ConverterType { get; set; }
Property Value
Type | Description |
---|---|
Type |
UnknownPropertyHandling
The strategy to use when handling unknown properties. The default is Warn.
Declaration
public UnknownPropertyHandling UnknownPropertyHandling { get; set; }
Property Value
Type | Description |
---|---|
UnknownPropertyHandling |