SemanticVersion.TryParse(String, SemanticVersion) Method

Definition

Parse version and return true if it is a valid SemanticVersion, otherwise return false. No exceptions are raised.

public:
 static bool TryParse(System::String ^ version, [Runtime::InteropServices::Out] System::Management::Automation::SemanticVersion ^ % result);
public static bool TryParse (string version, out System.Management.Automation.SemanticVersion result);
static member TryParse : string * SemanticVersion -> bool
Public Shared Function TryParse (version As String, ByRef result As SemanticVersion) As Boolean

Parameters

version
String

The string to parse.

result
SemanticVersion

The return value when the string is a valid SemanticVersion

Returns

Applies to