Compartilhar via


SdkReference.TryParse(String, SdkReference) Method

Definition

Attempts to parse the specified string as a SdkReference. The expected format is: SDK, SDK/Version, or SDK/min=MinimumVersion Values are not required to specify a version or MinimumVersion.

public:
 static bool TryParse(System::String ^ sdk, [Runtime::InteropServices::Out] Microsoft::Build::Framework::SdkReference ^ % sdkReference);
public static bool TryParse (string sdk, out Microsoft.Build.Framework.SdkReference sdkReference);
static member TryParse : string * SdkReference -> bool
Public Shared Function TryParse (sdk As String, ByRef sdkReference As SdkReference) As Boolean

Parameters

sdk
String

An SDK name and version to parse in the format "SDK/Version,min=MinimumVersion".

sdkReference
SdkReference

A parsed SdkReference if the specified value is a valid SDK name.

Returns

true if the SDK name was successfully parsed, otherwise false.

Applies to