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\u003eThis documentation details the \u003ccode\u003eFolderLocationName\u003c/code\u003e class, which is part of the Google Cloud Security Center v2 API and is used to manage resource names for FolderLocation resources.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFolderLocationName\u003c/code\u003e class allows for the construction, formatting, parsing, and comparison of resource names using the pattern \u003ccode\u003efolders/{folder}/locations/{location}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can create instances of the \u003ccode\u003eFolderLocationName\u003c/code\u003e class using a folder ID and a location ID, and it provides properties to access these IDs, as well as to determine if the instance contains a known pattern or an unparsed resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFolderLocationName\u003c/code\u003e class includes methods for formatting resource names into strings, parsing strings into resource name instances, and attempting to parse strings into resource names with the option to allow for unparsed resource names.\u003c/p\u003e\n"],["\u003cp\u003eThe class also implements the \u003ccode\u003eIEquatable\u003c/code\u003e and \u003ccode\u003eIResourceName\u003c/code\u003e interfaces and overides several of the \u003ccode\u003eobject\u003c/code\u003e class methods, and includes operators to compare instances, as well as properties to view the folder, location, type, and unparsed resource.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class FolderLocationName (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.FolderLocationName)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.FolderLocationName)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.FolderLocationName) \n\n public sealed class FolderLocationName : IResourceName, IEquatable\u003cFolderLocationName\u003e\n\nReference documentation and code samples for the Security Command Center v2 API class FolderLocationName.\n\nResource name for the `FolderLocation` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e FolderLocationName \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)[FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) \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### FolderLocationName(string, string)\n\n public FolderLocationName(string folderId, string locationId)\n\nConstructs a new instance of a [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) class from the component parts of pattern\n`folders/{folder}/locations/{location}`\n\nProperties\n----------\n\n### FolderId\n\n public string FolderId { get; }\n\nThe `Folder` 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### 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### Type\n\n public FolderLocationName.ResourceNameType Type { get; }\n\nThe [FolderLocationName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName.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\nMethods\n-------\n\n### Format(string, string)\n\n public static string Format(string folderId, string locationId)\n\nFormats the IDs into the string representation of this [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) with pattern\n`folders/{folder}/locations/{location}`.\n\n### FormatFolderLocation(string, string)\n\n public static string FormatFolderLocation(string folderId, string locationId)\n\nFormats the IDs into the string representation of this [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) with pattern\n`folders/{folder}/locations/{location}`.\n\n### FromFolderLocation(string, string)\n\n public static FolderLocationName FromFolderLocation(string folderId, string locationId)\n\nCreates a [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) with the pattern `folders/{folder}/locations/{location}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static FolderLocationName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) 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 FolderLocationName Parse(string folderLocationName)\n\nParses the given resource name string into a new [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `folders/{folder}/locations/{location}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static FolderLocationName Parse(string folderLocationName, bool allowUnparsed)\n\nParses the given resource name string into a new [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) 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- `folders/{folder}/locations/{location}`\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 FolderLocationName)\n\n public static bool TryParse(string folderLocationName, out FolderLocationName result)\n\nTries to parse the given resource name string into a new [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `folders/{folder}/locations/{location}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out FolderLocationName)\n\n public static bool TryParse(string folderLocationName, bool allowUnparsed, out FolderLocationName result)\n\nTries to parse the given resource name string into a new [FolderLocationName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.FolderLocationName) 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- `folders/{folder}/locations/{location}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(FolderLocationName, FolderLocationName)\n\n public static bool operator ==(FolderLocationName a, FolderLocationName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(FolderLocationName, FolderLocationName)\n\n public static bool operator !=(FolderLocationName a, FolderLocationName b)\n\nDetermines whether two specified resource names have different values."]]