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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eDlpJobName\u003c/code\u003e is a class in the Security Command Center v2 API for representing the resource name of a \u003ccode\u003eDlpJob\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for the creation, parsing, and formatting of \u003ccode\u003eDlpJob\u003c/code\u003e resource names, which follow patterns like \u003ccode\u003eprojects/{project}/dlpJobs/{dlp_job}\u003c/code\u003e or \u003ccode\u003eprojects/{project}/locations/{location}/dlpJobs/{dlp_job}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDlpJobName\u003c/code\u003e instances can be constructed using a project ID and a \u003ccode\u003edlpJob\u003c/code\u003e ID, and it also supports unparsed resource names for flexibility.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to check if an instance contains a known pattern and to access properties such as \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eDlpJobId\u003c/code\u003e, \u003ccode\u003eLocationId\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<DlpJobName>\u003c/code\u003e, enabling its use in various resource name-related operations and comparisons.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class DlpJobName (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.DlpJobName)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.DlpJobName)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.DlpJobName) \n\n public sealed class DlpJobName : IResourceName, IEquatable\u003cDlpJobName\u003e\n\nReference documentation and code samples for the Security Command Center v2 API class DlpJobName.\n\nResource name for the `DlpJob` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DlpJobName \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)[DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) \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### DlpJobName(string, string)\n\n public DlpJobName(string projectId, string dlpJobId)\n\nConstructs a new instance of a [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) class from the component parts of pattern\n`projects/{project}/dlpJobs/{dlp_job}`\n\nProperties\n----------\n\n### DlpJobId\n\n public string DlpJobId { get; }\n\nThe `DlpJob` ID. May be `null`, depending on which resource name is contained by this instance.\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### ProjectId\n\n public string ProjectId { get; }\n\nThe `Project` ID. May be `null`, depending on which resource name is contained by this instance.\n\n### Type\n\n public DlpJobName.ResourceNameType Type { get; }\n\nThe [DlpJobName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName.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 projectId, string dlpJobId)\n\nFormats the IDs into the string representation of this [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) with pattern\n`projects/{project}/dlpJobs/{dlp_job}`.\n\n### FormatProjectDlpJob(string, string)\n\n public static string FormatProjectDlpJob(string projectId, string dlpJobId)\n\nFormats the IDs into the string representation of this [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) with pattern\n`projects/{project}/dlpJobs/{dlp_job}`.\n\n### FormatProjectLocationDlpJob(string, string, string)\n\n public static string FormatProjectLocationDlpJob(string projectId, string locationId, string dlpJobId)\n\nFormats the IDs into the string representation of this [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) with pattern\n`projects/{project}/locations/{location}/dlpJobs/{dlp_job}`.\n\n### FromProjectDlpJob(string, string)\n\n public static DlpJobName FromProjectDlpJob(string projectId, string dlpJobId)\n\nCreates a [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) with the pattern `projects/{project}/dlpJobs/{dlp_job}`.\n\n### FromProjectLocationDlpJob(string, string, string)\n\n public static DlpJobName FromProjectLocationDlpJob(string projectId, string locationId, string dlpJobId)\n\nCreates a [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) with the pattern\n`projects/{project}/locations/{location}/dlpJobs/{dlp_job}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static DlpJobName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) 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 DlpJobName Parse(string dlpJobName)\n\nParses the given resource name string into a new [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/dlpJobs/{dlp_job}`\n- `projects/{project}/locations/{location}/dlpJobs/{dlp_job}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static DlpJobName Parse(string dlpJobName, bool allowUnparsed)\n\nParses the given resource name string into a new [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) 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}/dlpJobs/{dlp_job}`\n- `projects/{project}/locations/{location}/dlpJobs/{dlp_job}`\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 DlpJobName)\n\n public static bool TryParse(string dlpJobName, out DlpJobName result)\n\nTries to parse the given resource name string into a new [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/dlpJobs/{dlp_job}`\n- `projects/{project}/locations/{location}/dlpJobs/{dlp_job}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out DlpJobName)\n\n public static bool TryParse(string dlpJobName, bool allowUnparsed, out DlpJobName result)\n\nTries to parse the given resource name string into a new [DlpJobName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.DlpJobName) 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}/dlpJobs/{dlp_job}`\n- `projects/{project}/locations/{location}/dlpJobs/{dlp_job}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(DlpJobName, DlpJobName)\n\n public static bool operator ==(DlpJobName a, DlpJobName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(DlpJobName, DlpJobName)\n\n public static bool operator !=(DlpJobName a, DlpJobName b)\n\nDetermines whether two specified resource names have different values."]]