A token to retrieve the next page of results. Pass this value in
[ListSecretsRequest.page_token][google.cloud.secretmanager.v1.ListSecretsRequest.page_token]
to retrieve the next page.
The total number of [Secrets][google.cloud.secretmanager.v1.Secret] but 0
when the
[ListSecretsRequest.filter][google.cloud.secretmanager.v1.ListSecretsRequest.filter]
field is set.
[[["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 webpage provides reference documentation for the \u003ccode\u003eListSecretsResponse\u003c/code\u003e class within the Google Cloud Secret Manager v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListSecretsResponse\u003c/code\u003e class is a response message used by the \u003ccode\u003eSecretManagerService.ListSecrets\u003c/code\u003e method to return a list of secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eListSecretsResponse\u003c/code\u003e is 2.5.0, with previous versions back to 1.3.0 also available in the document.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListSecretsResponse\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIPageResponse\u003c/code\u003e, \u003ccode\u003eIEnumerable\u003c/code\u003e, \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListSecretsResponse\u003c/code\u003e includes properties to handle pagination (NextPageToken), access the list of secrets (Secrets), and determine the total size of the secrets (TotalSize).\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1 API - Class ListSecretsResponse (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.5.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.4.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.3.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.2.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.1.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/2.0.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.9.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.8.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.7.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.6.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.5.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.4.0/Google.Cloud.SecretManager.V1.ListSecretsResponse)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/1.3.0/Google.Cloud.SecretManager.V1.ListSecretsResponse) \n\n public sealed class ListSecretsResponse : IPageResponse\u003cSecret\u003e, IEnumerable\u003cSecret\u003e, IEnumerable, IMessage\u003cListSecretsResponse\u003e, IEquatable\u003cListSecretsResponse\u003e, IDeepCloneable\u003cListSecretsResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1 API class ListSecretsResponse.\n\nResponse message for\n\\[SecretManagerService.ListSecrets\\]\\[google.cloud.secretmanager.v1.SecretManagerService.ListSecrets\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListSecretsResponse \n\nImplements\n----------\n\n[IPageResponse](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageResponse-1.html)[Secret](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[Secret](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.Secret), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListSecretsResponse](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1.ListSecretsResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \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.SecretManager.V1](/dotnet/docs/reference/Google.Cloud.SecretManager.V1/latest/Google.Cloud.SecretManager.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1.dll\n\nConstructors\n------------\n\n### ListSecretsResponse()\n\n public ListSecretsResponse()\n\n### ListSecretsResponse(ListSecretsResponse)\n\n public ListSecretsResponse(ListSecretsResponse other)\n\nProperties\n----------\n\n### NextPageToken\n\n public string NextPageToken { get; set; }\n\nA token to retrieve the next page of results. Pass this value in\n\\[ListSecretsRequest.page_token\\]\\[google.cloud.secretmanager.v1.ListSecretsRequest.page_token\\]\nto retrieve the next page.\n\n### Secrets\n\n public RepeatedField\u003cSecret\u003e Secrets { get; }\n\nThe list of \\[Secrets\\]\\[google.cloud.secretmanager.v1.Secret\\] sorted in\nreverse by create_time (newest first).\n\n### TotalSize\n\n public int TotalSize { get; set; }\n\nThe total number of \\[Secrets\\]\\[google.cloud.secretmanager.v1.Secret\\] but 0\nwhen the\n\\[ListSecretsRequest.filter\\]\\[google.cloud.secretmanager.v1.ListSecretsRequest.filter\\]\nfield is set.\n\nMethods\n-------\n\n### GetEnumerator()\n\n public IEnumerator\u003cSecret\u003e GetEnumerator()\n\nReturns an enumerator that iterates through the resources in this response."]]