string unparsed = "projects/my-project/locations/us-central1/functions/my-function"; gax::UnparsedResourceName resourceName = gax::UnparsedResourceName.Parse(unparsed); string project = resourceName.GetPropertyValue("projects"); string location = resourceName.GetPropertyValue("locations"); string function = resourceName.GetPropertyValue("functions");
gax::UnparsedResourceName resourceName = new gax::UnparsedResourceName( new string[] { "projects", "my-project", "locations", "us-central1", "functions", "my-function" }); string unparsed = resourceName.ToString();This code example shows how to create an unparsed resource name using its individual components and then retrieve its unparsed string representation using the ToString method. Package library: Google.Api.Gax.