Firestore API - Class FirestoreDocumentIdAttribute (3.5.0)

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

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

Attribute indicating that a property should be populated with the Firestore document ID.

Inheritance

object > Attribute > FirestoreDocumentIdAttribute

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Remarks

This attribute must only be applied to properties of string or DocumentReference. This attribute is ignored when serializing a document to Firestore. This attribute must not be applied on a property which also has FirestorePropertyAttribute.

Constructors

FirestoreDocumentIdAttribute()

public FirestoreDocumentIdAttribute()

Creates an instance of the attribute.