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, with the latest version being 3.10.0, and documentation spanning back to version 2.3.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e is used to indicate that a property should be automatically populated with the creation timestamp from a Firestore document snapshot upon retrieval.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute can only be applied to properties of \u003ccode\u003eDateTime\u003c/code\u003e, \u003ccode\u003eDateTimeOffset\u003c/code\u003e, \u003ccode\u003eTimestamp\u003c/code\u003e, or their nullable equivalents, or a \u003ccode\u003eTimestamp\u003c/code\u003e and it is ignored during serialization to Firestore.\u003c/p\u003e\n"],["\u003cp\u003eThe attribute should not be used on properties that also have a \u003ccode\u003eFirestorePropertyAttribute\u003c/code\u003e, and it will default nullable properties to null when deserializing a snapshot of a missing document.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirestoreDocumentCreateTimestampAttribute\u003c/code\u003e inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class, and an instance of the attribute can be made by calling its constructor.\u003c/p\u003e\n"]]],[],null,[]]