Firebase.Firestore.QuerySnapshot

AQuerySnapshot contains the results of a query.

Summary

It can contain zero or moreDocumentSnapshot objects.

Inheritance

Inherits from: global::SystemCollections::Generic::IEnumerable< DocumentSnapshot >

Public attributes

Query => new Query(_proxy.query(), _firestore)
The query producing this snapshot.

Properties

Count
int
Returns the number of documents in this query snapshot.
Documents
IEnumerable<DocumentSnapshot >
The documents in the snapshot.
Metadata
The metadata for thisQuerySnapshot.
this[int index]
Returns the document snapshot with the specified index within this query snapshot.

Public functions

Equals(object obj)
override bool
Equals(QuerySnapshot other)
bool
GetChanges()
IEnumerable<DocumentChange >
The list of documents that changed since the last snapshot.
GetChanges(MetadataChanges metadataChanges)
IEnumerable<DocumentChange >
The list of documents that changed since the last snapshot.
GetHashCode()
override int

Public attributes

Query

QueryQuery=>newQuery(_proxy.query(),_firestore)

The query producing this snapshot.

Properties

Count

intCount

Returns the number of documents in this query snapshot.

The number of documents in this query snapshot.

Documents

IEnumerable<DocumentSnapshot>Documents

The documents in the snapshot.

Metadata

SnapshotMetadataMetadata

The metadata for thisQuerySnapshot.

this[int index]

DocumentSnapshotthis[intindex]

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

Details
Parameters
index
The index of the document to return.
Exceptions
ArgumentOutOfRangeException
index is less than 0, or greater than or equal toCount.
Returns
The document snapshot with the specified index within this query snapshot.

Public functions

Equals

overrideboolEquals(objectobj)

Equals

boolEquals(QuerySnapshotother)

GetChanges

IEnumerable<DocumentChange>GetChanges()

The list of documents that changed since the last snapshot.

If it's the first snapshot all documents will be in the list as added changes.

Documents with changes only to their metadata will not be included.

Details
Returns
The list of document changes since the last snapshot.

GetChanges

IEnumerable<DocumentChange>GetChanges(MetadataChangesmetadataChanges)

The list of documents that changed since the last snapshot.

If it's the first snapshot all documents will be in the list as added changes.

Details
Parameters
metadataChanges
Indicates whether metadata-only changes (i.e. onlyFirebase.Firestore.DocumentSnapshot.Metadata changed) should be included.
Returns
The list of document changes since the last snapshot.

GetHashCode

overrideintGetHashCode()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-27 UTC.