This attribute must only be applied to properties of DateTime, DateTimeOffset, Timestamp,
or the nullable equivalents, or a Timestamp.
This attribute is ignored when serializing a document to Firestore.
This attribute must not be applied on a property which also has FirestorePropertyAttribute.
When deserializing a snapshot representing a missing document, nullable properties will be set to a null value; non-nullable
properties will be set to the default value of the type (0001-01-01 for DateTime and DateTimeOffset, 1970-01-01 for Timestamp).
Constructors
FirestoreDocumentCreateTimestampAttribute()
public FirestoreDocumentCreateTimestampAttribute()
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e in the Google.Cloud.Firestore library, specifically for .NET development, spanning versions from 2.3.1 to 3.10.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e is used to indicate that a property should be populated with the creation timestamp from a Firestore document snapshot, only being applicable on properties of types \u003ccode\u003eDateTime\u003c/code\u003e, \u003ccode\u003eDateTimeOffset\u003c/code\u003e, \u003ccode\u003eTimestamp\u003c/code\u003e, or their nullable equivalents.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute is only utilized during the deserialization process of a Firestore document and is not considered when serializing a document to Firestore.\u003c/p\u003e\n"],["\u003cp\u003eThe attribute cannot be used on a property that is also using \u003ccode\u003eFirestorePropertyAttribute\u003c/code\u003e, as they are incompatible.\u003c/p\u003e\n"],["\u003cp\u003eWhen using this attribute and deserializing a snapshot representing a missing document, nullable properties will be set to null, and non-nullable properties will default to the type's default value, which vary depending on the type.\u003c/p\u003e\n"]]],[],null,[]]