[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\u003eThis page provides documentation for the \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e class within the Google Cloud Firestore .NET API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e is used to mark a property in a .NET object so that when it creates or modifies a Firestore document, the server's timestamp will be used instead of the property's existing value.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServerTimestampAttribute\u003c/code\u003e can be used on properties within a .NET object, as specified by the \u003ccode\u003eAttributeUsage(AttributeTargets.Property)\u003c/code\u003e definition.\u003c/p\u003e\n"],["\u003cp\u003eThis page also contains links to documentation for the varying versions of this product, ranging from version 2.3.1 up to the latest version 3.10.0.\u003c/p\u003e\n"]]],[],null,[]]