Number of documents that matches the query. May be null when count aggregation is not applied on the Query.
Note that when the query contains a limit, the count is restricted by that limit.
[[["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 information for the \u003ccode\u003eAggregateQuerySnapshot\u003c/code\u003e class within the Google Cloud Firestore API for .NET, with the latest version being 3.10.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAggregateQuerySnapshot\u003c/code\u003e represents an immutable snapshot of aggregate query results, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing \u003ccode\u003eIEquatable<AggregateQuerySnapshot>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eCount\u003c/code\u003e (the number of documents matching the query), \u003ccode\u003eQuery\u003c/code\u003e (the originating aggregate query), and \u003ccode\u003eReadTime\u003c/code\u003e (the snapshot's read time).\u003c/p\u003e\n"],["\u003cp\u003eMethods available include \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetValue<T>(AggregateField)\u003c/code\u003e, and \u003ccode\u003eGetValue<T>(string)\u003c/code\u003e for retrieving values from the snapshot, with specific exception handling for non-existent fields.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAggregateQuerySnapshot\u003c/code\u003e is a part of the \u003ccode\u003eGoogle.Cloud.Firestore\u003c/code\u003e namespace, residing in the \u003ccode\u003eGoogle.Cloud.Firestore.dll\u003c/code\u003e assembly, allowing interactions with aggregate query results from Firestore.\u003c/p\u003e\n"]]],[],null,["# Firestore API - Class AggregateQuerySnapshot (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.9.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.8.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.7.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.6.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore/3.5.1/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.4.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.3.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.2.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.1.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore/3.0.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore/2.5.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore/2.4.0/Google.Cloud.Firestore.AggregateQuerySnapshot)\n- [2.3.1](/dotnet/docs/reference/Google.Cloud.Firestore/2.3.1/Google.Cloud.Firestore.AggregateQuerySnapshot) \n\n public sealed class AggregateQuerySnapshot : IEquatable\u003cAggregateQuerySnapshot\u003e\n\nReference documentation and code samples for the Firestore API class AggregateQuerySnapshot.\n\nAn immutable snapshot of aggregate query results. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AggregateQuerySnapshot \n\nImplements\n----------\n\n[IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AggregateQuerySnapshot](/dotnet/docs/reference/Google.Cloud.Firestore/latest/Google.Cloud.Firestore.AggregateQuerySnapshot) \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### Count\n\n public long? Count { get; }\n\nNumber of documents that matches the query. May be null when count aggregation is not applied on the Query.\nNote that when the query contains a limit, the count is restricted by that limit.\n\n### Query\n\n public AggregateQuery 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### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### GetValue\\\u003cT\\\u003e(AggregateField)\n\n public T GetValue\u003cT\u003e(AggregateField aggregateField)\n\nFetches the value from the dictionary, throwing an exception if the value does not exist.\n\n### GetValue\\\u003cT\\\u003e(string)\n\n public T GetValue\u003cT\u003e(string alias)\n\nFetches the value from the dictionary, throwing an exception if the value does not exist."]]