public sealed class DocumentChange : IEquatable<DocumentChange>
Reference documentation and code samples for the Firestore API class DocumentChange.
A DocumentChange represents a change to the documents matching a query. It contains the document
affected and a the type of change that occurred (added, modifed, or removed).
The index of the changed document in the result set immediately after this DocumentChange
(i.e. supposing that all prior DocumentChange objects and this one have been applied),
null if the change type is Removed. The index will never be negative.
The index of the changed document in the result set immediately prior to this DocumentChange
(i.e. supposing that all prior DocumentChange objects have been applied), or null
if the change type is Added. The index will never be negative.
[[["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\u003eDocumentChange\u003c/code\u003e class within the Google Cloud Firestore .NET API, which is used to represent changes to documents within a query's result set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentChange\u003c/code\u003e class, which implements \u003ccode\u003eIEquatable\u003c/code\u003e, includes properties such as \u003ccode\u003eChangeType\u003c/code\u003e, \u003ccode\u003eDocument\u003c/code\u003e, \u003ccode\u003eNewIndex\u003c/code\u003e, and \u003ccode\u003eOldIndex\u003c/code\u003e to describe the nature of the document's modification.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChangeType\u003c/code\u003e property indicates whether a document has been added, modified, or removed, while \u003ccode\u003eDocument\u003c/code\u003e contains the snapshot of the changed document.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNewIndex\u003c/code\u003e and \u003ccode\u003eOldIndex\u003c/code\u003e properties specify the document's position within the query result set after and before the change respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe document change class is contained within the namespace \u003ccode\u003eGoogle.Cloud.Firestore\u003c/code\u003e in the assembly \u003ccode\u003eGoogle.Cloud.Firestore.dll\u003c/code\u003e, and documentation is provided for versions ranging from 2.3.1 to 3.10.0, the latest.\u003c/p\u003e\n"]]],[],null,[]]