public sealed class QuerySnapshot : IReadOnlyList<DocumentSnapshot>, IReadOnlyCollection<DocumentSnapshot>, IEnumerable<DocumentSnapshot>, IEnumerable, IEquatable<QuerySnapshot>
Reference documentation and code samples for the Firestore API class QuerySnapshot.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eQuerySnapshot\u003c/code\u003e class within the Google Cloud Firestore API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQuerySnapshot\u003c/code\u003e represents an immutable snapshot of query results, providing access to a collection of \u003ccode\u003eDocumentSnapshot\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces including \u003ccode\u003eIReadOnlyList\u003c/code\u003e, \u003ccode\u003eIReadOnlyCollection\u003c/code\u003e, \u003ccode\u003eIEnumerable\u003c/code\u003e, and \u003ccode\u003eIEquatable\u003c/code\u003e, enabling flexible data access.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eQuerySnapshot\u003c/code\u003e include \u003ccode\u003eChanges\u003c/code\u003e for tracking document modifications, \u003ccode\u003eCount\u003c/code\u003e for the number of documents, \u003ccode\u003eDocuments\u003c/code\u003e for the snapshot data, \u003ccode\u003eQuery\u003c/code\u003e for the original query, and \u003ccode\u003eReadTime\u003c/code\u003e for the snapshot's timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version of \u003ccode\u003eQuerySnapshot\u003c/code\u003e is 3.10.0, and there are documentations for previous versions going as far back as 2.3.1.\u003c/p\u003e\n"]]],[],null,["# Firestore API - Class QuerySnapshot (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.QuerySnapshot)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.9.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.8.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.7.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.6.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore/3.5.1/Google.Cloud.Firestore.QuerySnapshot)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.4.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.3.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.2.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.1.0/Google.Cloud.Firestore.QuerySnapshot)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.0.0/Google.Cloud.Firestore.QuerySnapshot)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore/2.5.0/Google.Cloud.Firestore.QuerySnapshot)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore/2.4.0/Google.Cloud.Firestore.QuerySnapshot)\n- [2.3.1](/dotnet/docs/reference/Google.Cloud.Firestore/2.3.1/Google.Cloud.Firestore.QuerySnapshot) \n\n public sealed class QuerySnapshot : IReadOnlyList\u003cDocumentSnapshot\u003e, IReadOnlyCollection\u003cDocumentSnapshot\u003e, IEnumerable\u003cDocumentSnapshot\u003e, IEnumerable, IEquatable\u003cQuerySnapshot\u003e\n\nReference documentation and code samples for the Firestore API class QuerySnapshot.\n\nAn immutable snapshot of complete query results. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QuerySnapshot \n\nImplements\n----------\n\n[IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1)[DocumentSnapshot](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.DocumentSnapshot), [IReadOnlyCollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1)[DocumentSnapshot](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.DocumentSnapshot), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[DocumentSnapshot](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.DocumentSnapshot), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QuerySnapshot](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.QuerySnapshot) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Firestore](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.dll\n\nProperties\n----------\n\n### Changes\n\n public IReadOnlyList\u003cDocumentChange\u003e Changes { get; }\n\nThe changes in the documents.\n\n### Count\n\n public int Count { get; }\n\nReturns the number of documents in this query snapshot.\n\n### Documents\n\n public IReadOnlyList\u003cDocumentSnapshot\u003e Documents { get; }\n\nThe documents in the snapshot.\n\n### this\\[int\\]\n\n public DocumentSnapshot this[int index] { get; }\n\nReturns the document snapshot with the specified index within this query snapshot.\n\n### Query\n\n public Query Query { get; }\n\nThe query producing this snapshot.\n\n### ReadTime\n\n public Timestamp ReadTime { get; }\n\nThe time at which the snapshot was read.\n\nMethods\n-------\n\n### GetEnumerator()\n\n public IEnumerator\u003cDocumentSnapshot\u003e GetEnumerator()\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)"]]