public sealed class DocumentChange : IEquatable<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"]],[["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-04-01 UTC."],[[["This webpage provides documentation for the `DocumentChange` class within the Google.Cloud.Firestore library, outlining its role in representing changes to documents."],["The `DocumentChange` class, which is sealed and implements `IEquatable\u003cDocumentChange\u003e`, details the type of change (added, modified, or removed) and the associated document affected by the change."],["It contains properties like `ChangeType`, `Document`, `NewIndex`, and `OldIndex` that provide information about the nature of the change, the document involved, and its index within the query result set before and after the change."],["The page also includes a list of available versions of the `DocumentChange` documentation, ranging from version 2.3.1 to the latest version 3.10.0."],["The `DocumentChange` class inherits from `Object` and allows the user to utilize the `GetHashCode` method to return a hashcode that represents the object."]]],[]]