If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eAccessLevelName\u003c/code\u003e class within the Google Identity Access Context Manager v1 API, focusing on its role as a resource name for \u003ccode\u003eAccessLevel\u003c/code\u003e resources.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.5.0, and several previous versions of the API are also listed, ranging back to 1.2.0, with direct links to the respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessLevelName\u003c/code\u003e class implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<AccessLevelName>\u003c/code\u003e, and is designed to handle resource names formatted as \u003ccode\u003eaccessPolicies/{access_policy}/accessLevels/{access_level}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey functionalities of the \u003ccode\u003eAccessLevelName\u003c/code\u003e class include parsing and formatting resource names, constructing instances from component IDs, and determining the type of the contained resource name, along with properties to access the \u003ccode\u003eAccessPolicy\u003c/code\u003e and \u003ccode\u003eAccessLevel\u003c/code\u003e IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details how to create, parse, and format \u003ccode\u003eAccessLevelName\u003c/code\u003e instances, offering methods like \u003ccode\u003eFormat\u003c/code\u003e, \u003ccode\u003eFromAccessPolicyAccessLevel\u003c/code\u003e, \u003ccode\u003eParse\u003c/code\u003e, and \u003ccode\u003eTryParse\u003c/code\u003e to handle resource name strings effectively.\u003c/p\u003e\n"]]],[],null,["# Identity Access Context Manager v1 API - Class AccessLevelName (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [2.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.4.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [2.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.3.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [2.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.2.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [2.1.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.1.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [2.0.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.0.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [1.5.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.5.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [1.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.4.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [1.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.3.0/Google.Identity.AccessContextManager.V1.AccessLevelName)\n- [1.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.2.0/Google.Identity.AccessContextManager.V1.AccessLevelName) \n\n public sealed class AccessLevelName : IResourceName, IEquatable\u003cAccessLevelName\u003e\n\nReference documentation and code samples for the Identity Access Context Manager v1 API class AccessLevelName.\n\nResource name for the `AccessLevel` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AccessLevelName \n\nImplements\n----------\n\n[IResourceName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/IResourceName.cs), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Identity.AccessContextManager.V1](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1)\n\nAssembly\n--------\n\nGoogle.Identity.AccessContextManager.V1.dll\n\nConstructors\n------------\n\n### AccessLevelName(string, string)\n\n public AccessLevelName(string accessPolicyId, string accessLevelId)\n\nConstructs a new instance of a [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) class from the component parts of pattern\n`accessPolicies/{access_policy}/accessLevels/{access_level}`\n\nProperties\n----------\n\n### AccessLevelId\n\n public string AccessLevelId { get; }\n\nThe `AccessLevel` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### AccessPolicyId\n\n public string AccessPolicyId { get; }\n\nThe `AccessPolicy` ID. Will not be `null`, unless this instance contains an unparsed resource\nname.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### Type\n\n public AccessLevelName.ResourceNameType Type { get; }\n\nThe [AccessLevelName.ResourceNameType](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/UnparsedResourceName.cs). Only non-`null` if this instance contains an\nunparsed resource name.\n\nMethods\n-------\n\n### Format(string, string)\n\n public static string Format(string accessPolicyId, string accessLevelId)\n\nFormats the IDs into the string representation of this [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) with pattern\n`accessPolicies/{access_policy}/accessLevels/{access_level}`.\n\n### FormatAccessPolicyAccessLevel(string, string)\n\n public static string FormatAccessPolicyAccessLevel(string accessPolicyId, string accessLevelId)\n\nFormats the IDs into the string representation of this [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) with pattern\n`accessPolicies/{access_policy}/accessLevels/{access_level}`.\n\n### FromAccessPolicyAccessLevel(string, string)\n\n public static AccessLevelName FromAccessPolicyAccessLevel(string accessPolicyId, string accessLevelId)\n\nCreates a [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) with the pattern\n`accessPolicies/{access_policy}/accessLevels/{access_level}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static AccessLevelName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) containing an unparsed resource name.\n\n### GetHashCode()\n\n public override int GetHashCode()\n\nReturns a hash code for this resource name.\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### Parse(string)\n\n public static AccessLevelName Parse(string accessLevelName)\n\nParses the given resource name string into a new [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}/accessLevels/{access_level}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static AccessLevelName Parse(string accessLevelName, bool allowUnparsed)\n\nParses the given resource name string into a new [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) instance; optionally allowing\nan unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}/accessLevels/{access_level}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\n### ToString()\n\n public override string ToString()\n\nThe string representation of the resource name.\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### TryParse(string, out AccessLevelName)\n\n public static bool TryParse(string accessLevelName, out AccessLevelName result)\n\nTries to parse the given resource name string into a new [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}/accessLevels/{access_level}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out AccessLevelName)\n\n public static bool TryParse(string accessLevelName, bool allowUnparsed, out AccessLevelName result)\n\nTries to parse the given resource name string into a new [AccessLevelName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessLevelName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}/accessLevels/{access_level}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(AccessLevelName, AccessLevelName)\n\n public static bool operator ==(AccessLevelName a, AccessLevelName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(AccessLevelName, AccessLevelName)\n\n public static bool operator !=(AccessLevelName a, AccessLevelName b)\n\nDetermines whether two specified resource names have different values."]]