[[["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\u003eThe latest version of the \u003ccode\u003eListRolesResponse\u003c/code\u003e API class is 2.4.0, part of the Google.Cloud.Iam.Admin.V1 namespace for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListRolesResponse\u003c/code\u003e is used to retrieve a list of roles defined under a specific resource within the Identity and Access Management (IAM) system.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, \u003ccode\u003eIPageResponse\u003c/code\u003e, and \u003ccode\u003eIEnumerable\u003c/code\u003e, enabling various functionalities like serialization, equality checks, cloning, and enumeration.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties such as \u003ccode\u003eNextPageToken\u003c/code\u003e for pagination and \u003ccode\u003eRoles\u003c/code\u003e, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e containing the actual roles.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eGetEnumerator()\u003c/code\u003e method, allowing for easy iteration through the \u003ccode\u003eRole\u003c/code\u003e resources contained in the response.\u003c/p\u003e\n"]]],[],null,["# Identity and Access Management (IAM) v1 API - Class ListRolesResponse (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/2.3.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/2.2.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/2.1.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/2.0.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/1.2.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/1.1.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/1.0.0/Google.Cloud.Iam.Admin.V1.ListRolesResponse) \n\n public sealed class ListRolesResponse : IMessage\u003cListRolesResponse\u003e, IEquatable\u003cListRolesResponse\u003e, IDeepCloneable\u003cListRolesResponse\u003e, IBufferMessage, IMessage, IPageResponse\u003cRole\u003e, IEnumerable\u003cRole\u003e, IEnumerable\n\nReference documentation and code samples for the Identity and Access Management (IAM) v1 API class ListRolesResponse.\n\nThe response containing the roles defined under a resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ListRolesResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListRolesResponse](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.ListRolesResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListRolesResponse](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.ListRolesResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListRolesResponse](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.ListRolesResponse), [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), [IPageResponse](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax.Grpc/PagedEnumerableCommon.cs)[Role](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.Role), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[Role](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.Role), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable) \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.Iam.Admin.V1](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iam.Admin.V1.dll\n\nConstructors\n------------\n\n### ListRolesResponse()\n\n public ListRolesResponse()\n\n### ListRolesResponse(ListRolesResponse)\n\n public ListRolesResponse(ListRolesResponse other)\n\nProperties\n----------\n\n### NextPageToken\n\n public string NextPageToken { get; set; }\n\nTo retrieve the next page of results, set\n`ListRolesRequest.page_token` to this value.\n\n### Roles\n\n public RepeatedField\u003cRole\u003e Roles { get; }\n\nThe Roles defined on this resource.\n\nMethods\n-------\n\n### GetEnumerator()\n\n public IEnumerator\u003cRole\u003e GetEnumerator()\n\nReturns an enumerator that iterates through the resources in this response."]]