public ValuedResourceName(string organizationId, string simulationId, string valuedResourceId)
Constructs a new instance of a ValuedResourceName class from the component parts of pattern
organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}
public static string Format(string organizationId, string simulationId, string valuedResourceId)
Formats the IDs into the string representation of this ValuedResourceName with pattern
organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}.
The string representation of this ValuedResourceName with pattern
organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}.
Formats the IDs into the string representation of this ValuedResourceName with pattern
organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}
.
The string representation of this ValuedResourceName with pattern
organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}
.
public static string FormatOrganizationSimulationValuedResource(string organizationId, string simulationId, string valuedResourceId)
Formats the IDs into the string representation of this ValuedResourceName with pattern
organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}.
The string representation of this ValuedResourceName with pattern
organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}.
Creates a ValuedResourceName with the pattern
organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}
.
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\u003eThe \u003ccode\u003eValuedResourceName\u003c/code\u003e class in the Security Command Center v2 API represents a resource name for the \u003ccode\u003eValuedResource\u003c/code\u003e and it implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<ValuedResourceName>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt can be constructed using an \u003ccode\u003eorganizationId\u003c/code\u003e, \u003ccode\u003esimulationId\u003c/code\u003e, and \u003ccode\u003evaluedResourceId\u003c/code\u003e or be parsed from a string representation following specified patterns, like \u003ccode\u003eorganizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to format IDs into the string representation of a \u003ccode\u003eValuedResourceName\u003c/code\u003e and to create a \u003ccode\u003eValuedResourceName\u003c/code\u003e from those IDs, supporting patterns with and without locations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eValuedResourceName\u003c/code\u003e includes properties to access individual components of the resource name, such as \u003ccode\u003eOrganizationId\u003c/code\u003e, \u003ccode\u003eSimulationId\u003c/code\u003e, and \u003ccode\u003eValuedResourceId\u003c/code\u003e, some of which may be \u003ccode\u003enull\u003c/code\u003e depending on the instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to parse and tryParse resource names, and supports the use of unparsed resource names.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class ValuedResourceName (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.ValuedResourceName)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.ValuedResourceName) \n\n public sealed class ValuedResourceName : IResourceName, IEquatable\u003cValuedResourceName\u003e\n\nReference documentation and code samples for the Security Command Center v2 API class ValuedResourceName.\n\nResource name for the `ValuedResource` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ValuedResourceName \n\nImplements\n----------\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### ValuedResourceName(string, string, string)\n\n public ValuedResourceName(string organizationId, string simulationId, string valuedResourceId)\n\nConstructs a new instance of a [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) class from the component parts of pattern\n`organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`\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. May be `null`, depending on which resource name is contained by this instance.\n\n### OrganizationId\n\n public string OrganizationId { get; }\n\nThe `Organization` ID. May be `null`, depending on which resource name is contained by this\ninstance.\n\n### SimluationId\n\n public string SimluationId { get; }\n\nThe `Simluation` ID. May be `null`, depending on which resource name is contained by this\ninstance.\n\n### SimulationId\n\n public string SimulationId { get; }\n\nThe `Simulation` ID. May be `null`, depending on which resource name is contained by this\ninstance.\n\n### Type\n\n public ValuedResourceName.ResourceNameType Type { get; }\n\nThe [ValuedResourceName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.UnparsedResourceName.html). Only non-`null` if this instance contains an\nunparsed resource name.\n\n### ValuedResourceId\n\n public string ValuedResourceId { get; }\n\nThe `ValuedResource` ID. May be `null`, depending on which resource name is contained by this\ninstance.\n\nMethods\n-------\n\n### Format(string, string, string)\n\n public static string Format(string organizationId, string simulationId, string valuedResourceId)\n\nFormats the IDs into the string representation of this [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) with pattern\n`organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`.\n\n### FormatOrganizationLocationSimluationValuedResource(string, string, string, string)\n\n public static string FormatOrganizationLocationSimluationValuedResource(string organizationId, string locationId, string simluationId, string valuedResourceId)\n\nFormats the IDs into the string representation of this [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) with pattern\n`\norganizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\n.\n\n### FormatOrganizationSimulationValuedResource(string, string, string)\n\n public static string FormatOrganizationSimulationValuedResource(string organizationId, string simulationId, string valuedResourceId)\n\nFormats the IDs into the string representation of this [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) with pattern\n`organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`.\n\n### FromOrganizationLocationSimluationValuedResource(string, string, string, string)\n\n public static ValuedResourceName FromOrganizationLocationSimluationValuedResource(string organizationId, string locationId, string simluationId, string valuedResourceId)\n\nCreates a [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) with the pattern\n`\norganizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\n.\n\n### FromOrganizationSimulationValuedResource(string, string, string)\n\n public static ValuedResourceName FromOrganizationSimulationValuedResource(string organizationId, string simulationId, string valuedResourceId)\n\nCreates a [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) with the pattern\n`organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static ValuedResourceName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) 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 ValuedResourceName Parse(string valuedResourceName)\n\nParses the given resource name string into a new [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`\n- `\n organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static ValuedResourceName Parse(string valuedResourceName, bool allowUnparsed)\n\nParses the given resource name string into a new [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) 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- `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`\n- `\n organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\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 ValuedResourceName)\n\n public static bool TryParse(string valuedResourceName, out ValuedResourceName result)\n\nTries to parse the given resource name string into a new [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`\n- `\n organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out ValuedResourceName)\n\n public static bool TryParse(string valuedResourceName, bool allowUnparsed, out ValuedResourceName result)\n\nTries to parse the given resource name string into a new [ValuedResourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ValuedResourceName) instance;\noptionally allowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`\n- `\n organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(ValuedResourceName, ValuedResourceName)\n\n public static bool operator ==(ValuedResourceName a, ValuedResourceName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(ValuedResourceName, ValuedResourceName)\n\n public static bool operator !=(ValuedResourceName a, ValuedResourceName b)\n\nDetermines whether two specified resource names have different values."]]