[AttributeUsage(AttributeTargets.Property)]public sealed class ServerTimestampAttribute:Attribute
Reference documentation and code samples for the Firestore API class ServerTimestampAttribute.
Attribute indicating that the value of the property within the .NET object should be ignored
when creating or modifying a document. Instead, the server time of the commit that creates
or modifies the document is automatically used to populate the value in the Firestore document.
[[["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\u003eThe \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e is used to mark a property in a .NET object, indicating that its value should be replaced with the server's timestamp upon document creation or modification in Firestore.\u003c/p\u003e\n"],["\u003cp\u003eVersion 3.10.0 is the latest version of the Firestore API available in the documentation, with multiple previous versions also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e automatically uses the server time of the commit to populate the value in the Firestore document instead of the .NET object's value.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute can be applied to any property within a class, as indicated by \u003ccode\u003eAttributeTargets.Property\u003c/code\u003e in its usage definition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e class inherits from the .NET \u003ccode\u003eAttribute\u003c/code\u003e class, and consequently inherits numerous methods from it such as GetCustomAttribute and IsDefined.\u003c/p\u003e\n"]]],[],null,[]]