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-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eAccessPolicyName\u003c/code\u003e class within the Google Identity Access Context Manager v1 API, focusing on its role as a resource name for \u003ccode\u003eAccessPolicy\u003c/code\u003e resources.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessPolicyName\u003c/code\u003e class implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable\u003c/code\u003e, and it defines methods for parsing, formatting, and managing access policy resource names, which follow the pattern \u003ccode\u003eaccessPolicies/{access_policy}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 2.5.0, and the documentation includes versions from 2.0.0 to 2.5.0, and 1.2.0 to 1.5.0, allowing users to reference specific API versions if necessary.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eAccessPolicyName\u003c/code\u003e include \u003ccode\u003eAccessPolicyId\u003c/code\u003e, \u003ccode\u003eIsKnownPattern\u003c/code\u003e, \u003ccode\u003eType\u003c/code\u003e, and \u003ccode\u003eUnparsedResource\u003c/code\u003e, which help manage and understand the structure and status of resource names.\u003c/p\u003e\n"],["\u003cp\u003eConstructors, methods, and operators within the class facilitate the creation, manipulation, comparison, and validation of \u003ccode\u003eAccessPolicyName\u003c/code\u003e instances, enhancing flexibility and utility.\u003c/p\u003e\n"]]],[],null,["# Identity Access Context Manager v1 API - Class AccessPolicyName (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.AccessPolicyName)\n- [2.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.4.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [2.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.3.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [2.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.2.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [2.1.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.1.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [2.0.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.0.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [1.5.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.5.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [1.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.4.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [1.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.3.0/Google.Identity.AccessContextManager.V1.AccessPolicyName)\n- [1.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.2.0/Google.Identity.AccessContextManager.V1.AccessPolicyName) \n\n public sealed class AccessPolicyName : IResourceName, IEquatable\u003cAccessPolicyName\u003e\n\nReference documentation and code samples for the Identity Access Context Manager v1 API class AccessPolicyName.\n\nResource name for the `AccessPolicy` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AccessPolicyName \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)[AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) \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### AccessPolicyName(string)\n\n public AccessPolicyName(string accessPolicyId)\n\nConstructs a new instance of a [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) class from the component parts of pattern\n`accessPolicies/{access_policy}`\n\nProperties\n----------\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 AccessPolicyName.ResourceNameType Type { get; }\n\nThe [AccessPolicyName.ResourceNameType](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName.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)\n\n public static string Format(string accessPolicyId)\n\nFormats the IDs into the string representation of this [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) with pattern\n`accessPolicies/{access_policy}`.\n\n### FormatAccessPolicy(string)\n\n public static string FormatAccessPolicy(string accessPolicyId)\n\nFormats the IDs into the string representation of this [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) with pattern\n`accessPolicies/{access_policy}`.\n\n### FromAccessPolicy(string)\n\n public static AccessPolicyName FromAccessPolicy(string accessPolicyId)\n\nCreates a [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) with the pattern `accessPolicies/{access_policy}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static AccessPolicyName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) 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 AccessPolicyName Parse(string accessPolicyName)\n\nParses the given resource name string into a new [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static AccessPolicyName Parse(string accessPolicyName, bool allowUnparsed)\n\nParses the given resource name string into a new [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) 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}`\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 AccessPolicyName)\n\n public static bool TryParse(string accessPolicyName, out AccessPolicyName result)\n\nTries to parse the given resource name string into a new [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `accessPolicies/{access_policy}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out AccessPolicyName)\n\n public static bool TryParse(string accessPolicyName, bool allowUnparsed, out AccessPolicyName result)\n\nTries to parse the given resource name string into a new [AccessPolicyName](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.AccessPolicyName) 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}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(AccessPolicyName, AccessPolicyName)\n\n public static bool operator ==(AccessPolicyName a, AccessPolicyName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(AccessPolicyName, AccessPolicyName)\n\n public static bool operator !=(AccessPolicyName a, AccessPolicyName b)\n\nDetermines whether two specified resource names have different values."]]