Firestore API - Class FirestorePropertyAttribute (3.5.0)

[AttributeUsage(AttributeTargets.Property)]
public sealed class FirestorePropertyAttribute : Attribute

Reference documentation and code samples for the Firestore API class FirestorePropertyAttribute.

Attribute indicating that a property should be included in Firestore conversions.

Inheritance

object > Attribute > FirestorePropertyAttribute

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Constructors

FirestorePropertyAttribute()

public FirestorePropertyAttribute()

Creates an instance with no specified name.

FirestorePropertyAttribute(string)

public FirestorePropertyAttribute(string name)

Creates an instance with the specified name.

Parameter
NameDescription
namestring

The name to use within the Firestore document.

Properties

ConverterType

public Type ConverterType { get; set; }

A custom converter type to use for the attributed property.

Property Value
TypeDescription
Type

Name

public string Name { get; set; }

The name to use within the Firestore document. If not set, the name of the property is used directly.

Property Value
TypeDescription
string