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).
Implements
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
public sealed class DocumentChange : IEquatable<DocumentChange>
Properties
ChangeType
The type of change that was observed.
Declaration
public DocumentChange.Type ChangeType { get; }
Property Value
Type | Description |
---|---|
DocumentChange.Type |
Document
The newly added or modified document, or the document that was deleted.
Declaration
public DocumentSnapshot Document { get; }
Property Value
Type | Description |
---|---|
DocumentSnapshot |
NewIndex
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.
Declaration
public int? NewIndex { get; }
Property Value
Type | Description |
---|---|
int? |
OldIndex
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.
Declaration
public int? OldIndex { get; }
Property Value
Type | Description |
---|---|
int? |
Methods
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |