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\u003e\u003ccode\u003eQueueName\u003c/code\u003e is a class in the Google Cloud Tasks v2beta3 API that represents the resource name for a \u003ccode\u003eQueue\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<QueueName>\u003c/code\u003e, allowing it to be used as a resource name and compared for equality.\u003c/p\u003e\n"],["\u003cp\u003eYou can create \u003ccode\u003eQueueName\u003c/code\u003e instances using a constructor or methods like \u003ccode\u003eFromProjectLocationQueue\u003c/code\u003e, \u003ccode\u003eFromUnparsed\u003c/code\u003e, and it contains properties for project ID, location ID, and queue ID, and methods for parsing and formatting.\u003c/p\u003e\n"],["\u003cp\u003eIt can be parsed and formatted based on the pattern \u003ccode\u003eprojects/{project}/locations/{location}/queues/{queue}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for comparing \u003ccode\u003eQueueName\u003c/code\u003e instances using equality and inequality operators.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Tasks v2beta3 API - Class QueueName (3.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName)\n- [3.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/3.0.0-beta06/Google.Cloud.Tasks.V2Beta3.QueueName)\n- [2.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/2.0.0-beta08/Google.Cloud.Tasks.V2Beta3.QueueName) \n\n public sealed class QueueName : IResourceName, IEquatable\u003cQueueName\u003e\n\nReference documentation and code samples for the Google Cloud Tasks v2beta3 API class QueueName.\n\nResource name for the `Queue` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QueueName \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)[QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.Tasks.V2Beta3](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3)\n\nAssembly\n--------\n\nGoogle.Cloud.Tasks.V2Beta3.dll\n\nConstructors\n------------\n\n### QueueName(string, string, string)\n\n public QueueName(string projectId, string locationId, string queueId)\n\nConstructs a new instance of a [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) class from the component parts of pattern\n`projects/{project}/locations/{location}/queues/{queue}`\n\nProperties\n----------\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### LocationId\n\n public string LocationId { get; }\n\nThe `Location` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### ProjectId\n\n public string ProjectId { get; }\n\nThe `Project` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### QueueId\n\n public string QueueId { get; }\n\nThe `Queue` ID. Will not be `null`, unless this instance contains an unparsed resource name.\n\n### Type\n\n public QueueName.ResourceNameType Type { get; }\n\nThe [QueueName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName.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, string)\n\n public static string Format(string projectId, string locationId, string queueId)\n\nFormats the IDs into the string representation of this [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) with pattern\n`projects/{project}/locations/{location}/queues/{queue}`.\n\n### FormatProjectLocationQueue(string, string, string)\n\n public static string FormatProjectLocationQueue(string projectId, string locationId, string queueId)\n\nFormats the IDs into the string representation of this [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) with pattern\n`projects/{project}/locations/{location}/queues/{queue}`.\n\n### FromProjectLocationQueue(string, string, string)\n\n public static QueueName FromProjectLocationQueue(string projectId, string locationId, string queueId)\n\nCreates a [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) with the pattern `projects/{project}/locations/{location}/queues/{queue}`\n.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static QueueName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) 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 QueueName Parse(string queueName)\n\nParses the given resource name string into a new [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/queues/{queue}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static QueueName Parse(string queueName, bool allowUnparsed)\n\nParses the given resource name string into a new [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) 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- `projects/{project}/locations/{location}/queues/{queue}`\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 QueueName)\n\n public static bool TryParse(string queueName, out QueueName result)\n\nTries to parse the given resource name string into a new [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/locations/{location}/queues/{queue}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out QueueName)\n\n public static bool TryParse(string queueName, bool allowUnparsed, out QueueName result)\n\nTries to parse the given resource name string into a new [QueueName](/dotnet/docs/reference/Google.Cloud.Tasks.V2Beta3/latest/Google.Cloud.Tasks.V2Beta3.QueueName) 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- `projects/{project}/locations/{location}/queues/{queue}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(QueueName, QueueName)\n\n public static bool operator ==(QueueName a, QueueName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(QueueName, QueueName)\n\n public static bool operator !=(QueueName a, QueueName b)\n\nDetermines whether two specified resource names have different values."]]