ResourceUtils.ParentRelativePathFromResourceId(String) Method

Definition

Extracts parent resource path from a resource ID string.

public static string ParentRelativePathFromResourceId (string id);
static member ParentRelativePathFromResourceId : string -> string
Public Shared Function ParentRelativePathFromResourceId (id As String) As String

Parameters

id
String

a resource ID

Returns

relative parent path

Examples

"subscriptions/SSS/resourcegroups/RRR/foos/foo/bars/bar" will return "foos/foo".

Applies to