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-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eVersionName\u003c/code\u003e is a class in the Google Cloud Private Catalog v1beta1 API, representing a resource name for a specific version within a catalog and product.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<VersionName>\u003c/code\u003e, providing functionalities for resource name management and equality comparison.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVersionName\u003c/code\u003e instances can be constructed from component parts (\u003ccode\u003ecatalogId\u003c/code\u003e, \u003ccode\u003eproductId\u003c/code\u003e, \u003ccode\u003eversionId\u003c/code\u003e) or parsed from a string representation of the resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to format, parse, and validate \u003ccode\u003eVersionName\u003c/code\u003e strings, adhering to the pattern \u003ccode\u003ecatalogs/{catalog}/products/{product}/versions/{version}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version is 2.0.0-beta05, other versions available include 2.0.0-beta04 and 1.0.0-beta02.\u003c/p\u003e\n"]]],[],null,["# Cloud Private Catalog v1beta1 API - Class VersionName (2.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName)\n- [2.0.0-beta04](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/2.0.0-beta04/Google.Cloud.PrivateCatalog.V1Beta1.VersionName)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/1.0.0-beta02/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) \n\n public sealed class VersionName : IResourceName, IEquatable\u003cVersionName\u003e\n\nReference documentation and code samples for the Cloud Private Catalog v1beta1 API class VersionName.\n\nResource name for the `Version` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VersionName \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)[VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.PrivateCatalog.V1Beta1](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.PrivateCatalog.V1Beta1.dll\n\nConstructors\n------------\n\n### VersionName(string, string, string)\n\n public VersionName(string catalogId, string productId, string versionId)\n\nConstructs a new instance of a [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) class from the component parts of pattern\n`catalogs/{catalog}/products/{product}/versions/{version}`\n\nProperties\n----------\n\n### CatalogId\n\n public string CatalogId { get; }\n\nThe `Catalog` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### ProductId\n\n public string ProductId { get; }\n\nThe `Product` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### Type\n\n public VersionName.ResourceNameType Type { get; }\n\nThe [VersionName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName.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\n### VersionId\n\n public string VersionId { get; }\n\nThe `Version` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\nMethods\n-------\n\n### Format(string, string, string)\n\n public static string Format(string catalogId, string productId, string versionId)\n\nFormats the IDs into the string representation of this [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) with pattern\n`catalogs/{catalog}/products/{product}/versions/{version}`.\n\n### FormatCatalogProductVersion(string, string, string)\n\n public static string FormatCatalogProductVersion(string catalogId, string productId, string versionId)\n\nFormats the IDs into the string representation of this [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) with pattern\n`catalogs/{catalog}/products/{product}/versions/{version}`.\n\n### FromCatalogProductVersion(string, string, string)\n\n public static VersionName FromCatalogProductVersion(string catalogId, string productId, string versionId)\n\nCreates a [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) with the pattern\n`catalogs/{catalog}/products/{product}/versions/{version}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static VersionName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) 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 VersionName Parse(string versionName)\n\nParses the given resource name string into a new [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `catalogs/{catalog}/products/{product}/versions/{version}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static VersionName Parse(string versionName, bool allowUnparsed)\n\nParses the given resource name string into a new [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) instance; optionally allowing an\nunparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `catalogs/{catalog}/products/{product}/versions/{version}`\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 VersionName)\n\n public static bool TryParse(string versionName, out VersionName result)\n\nTries to parse the given resource name string into a new [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `catalogs/{catalog}/products/{product}/versions/{version}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out VersionName)\n\n public static bool TryParse(string versionName, bool allowUnparsed, out VersionName result)\n\nTries to parse the given resource name string into a new [VersionName](/dotnet/docs/reference/Google.Cloud.PrivateCatalog.V1Beta1/latest/Google.Cloud.PrivateCatalog.V1Beta1.VersionName) 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- `catalogs/{catalog}/products/{product}/versions/{version}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(VersionName, VersionName)\n\n public static bool operator ==(VersionName a, VersionName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(VersionName, VersionName)\n\n public static bool operator !=(VersionName a, VersionName b)\n\nDetermines whether two specified resource names have different values."]]