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 | intReturns the number of documents in this query snapshot. |
Documents | IEnumerable<DocumentSnapshot >The documents in the snapshot. |
Metadata | The metadata for this QuerySnapshot. |
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
Properties
Count
intCount
Returns the number of documents in this query snapshot.
The number of documents in this query snapshot.
this[int index]
DocumentSnapshotthis[intindex]
Returns the document snapshot with the specified index within this query snapshot.
| Details | |||
|---|---|---|---|
| Parameters |
| ||
| Exceptions |
| ||
| 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 |
| ||
| 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.