[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 indicate that a property's value in a .NET object should be replaced with the server's timestamp when creating or modifying a Firestore document.\u003c/p\u003e\n"],["\u003cp\u003eThis attribute targets properties (\u003ccode\u003eAttributeTargets.Property\u003c/code\u003e) and is part of the \u003ccode\u003eGoogle.Cloud.Firestore\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Firestore.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eVersion 3.10.0 is the latest version for this page's documentation, while this page covers version 3.8.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServerTimestampAttribute\u003c/code\u003e inherits from the \u003ccode\u003eAttribute\u003c/code\u003e class, which itself inherits from the \u003ccode\u003eobject\u003c/code\u003e class, providing access to multiple inherited methods.\u003c/p\u003e\n"]]],[],null,[]]