Share via


ResourceIdentifier.TryParse(String, ResourceIdentifier) Method

Definition

Converts the string representation of a ResourceIdentifier to the equivalent ResourceIdentifier structure.

public static bool TryParse (string? input, out Azure.Core.ResourceIdentifier? result);
static member TryParse : string * ResourceIdentifier -> bool
Public Shared Function TryParse (input As String, ByRef result As ResourceIdentifier) As Boolean

Parameters

input
String

The id string to convert.

result
ResourceIdentifier

The structure that will contain the parsed value. If the method returns true result contains a valid ResourceIdentifier. If the method returns false, result will be null.

Returns

True if the parse operation was successful; otherwise, false.

Applies to