Class QuerySnapshot
An immutable snapshot of complete query results.
Implements
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
public sealed class QuerySnapshot : IReadOnlyList<DocumentSnapshot>, IReadOnlyCollection<DocumentSnapshot>, IEnumerable<DocumentSnapshot>, IEnumerable, IEquatable<QuerySnapshot>
Properties
Changes
The changes in the documents.
Declaration
public IReadOnlyList<DocumentChange> Changes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DocumentChange> |
Count
Returns the number of documents in this query snapshot.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of documents in this query snapshot. |
Implements
Documents
The documents in the snapshot.
Declaration
public IReadOnlyList<DocumentSnapshot> Documents { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<DocumentSnapshot> |
this[int]
Returns the document snapshot with the specified index within this query snapshot.
Declaration
public DocumentSnapshot this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the document to return. |
Property Value
Type | Description |
---|---|
DocumentSnapshot | The document snapshot with the specified index within this query snapshot. |
Implements
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Query
The query producing this snapshot.
Declaration
public Query Query { get; }
Property Value
Type | Description |
---|---|
Query |
ReadTime
The time at which the snapshot was read.
Declaration
public Timestamp ReadTime { get; }
Property Value
Type | Description |
---|---|
Timestamp |
Methods
GetEnumerator()
Declaration
public IEnumerator<DocumentSnapshot> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<DocumentSnapshot> |
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |