Firestore API - Class FirestoreDocumentReadTimestampAttribute (3.8.0)

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

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

Attribute indicating that a property should be populated with the read timestamp from a Firestore document snapshot.

Inheritance

object > Attribute > FirestoreDocumentReadTimestampAttribute

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Remarks

This attribute must only be applied to properties of DateTime, DateTimeOffset, Timestamp, or the nullable equivalents, or a protobuf Timestamp. This attribute is ignored when serializing a document to Firestore. This attribute must not be applied on a property which also has FirestorePropertyAttribute.

Constructors

FirestoreDocumentReadTimestampAttribute()

public FirestoreDocumentReadTimestampAttribute()

Creates an instance of the attribute.