Class QuerySnapshot (3.0.0)

public sealed class QuerySnapshot : IReadOnlyList<DocumentSnapshot>, IReadOnlyCollection<DocumentSnapshot>, IEnumerable<DocumentSnapshot>, IEnumerable, IEquatable<QuerySnapshot>

An immutable snapshot of complete query results.

Inheritance

Object > QuerySnapshot

Namespace

Google.Cloud.Firestore

Assembly

Google.Cloud.Firestore.dll

Properties

Changes

public IReadOnlyList<DocumentChange> Changes { get; }

The changes in the documents.

Property Value
Type Description
IReadOnlyList<DocumentChange>

Count

public int Count { get; }

Returns the number of documents in this query snapshot.

Property Value
Type Description
Int32

The number of documents in this query snapshot.

Documents

public IReadOnlyList<DocumentSnapshot> Documents { get; }

The documents in the snapshot.

Property Value
Type Description
IReadOnlyList<DocumentSnapshot>

Item[Int32]

public DocumentSnapshot this[int index] { get; }

Returns the document snapshot with the specified index within this query snapshot.

Parameter
Name Description
index Int32

The index of the document to return.

Property Value
Type Description
DocumentSnapshot

The document snapshot with the specified index within this query snapshot.

Exceptions
Type Description
ArgumentOutOfRangeException

index is less than 0, or greater than or equal to Count.

Query

public Query Query { get; }

The query producing this snapshot.

Property Value
Type Description
Query

ReadTime

public Timestamp ReadTime { get; }

The time at which the snapshot was read.

Property Value
Type Description
Timestamp

Methods

GetEnumerator()

public IEnumerator<DocumentSnapshot> GetEnumerator()
Returns
Type Description
IEnumerator<DocumentSnapshot>

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32
Overrides

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator