SemanticVersion.TryParse(String, SemanticVersion) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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