[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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `ServerTimestampAttribute` is used to indicate that a property's value in a .NET object should be replaced with the server time when a Firestore document is created or modified."],["This attribute, when applied to a property, ensures that the server's timestamp is automatically used, overriding any client-side value provided during the document's creation or update."],["The `ServerTimestampAttribute` class is part of the `Google.Cloud.Firestore` namespace and is found within the `Google.Cloud.Firestore.dll` assembly."],["The latest version of the `ServerTimestampAttribute` is version 3.10.0, and there are previous versions ranging from 3.9.0 to 2.3.1 available for reference."]]],[]]