ProvideDependentAssemblyAttribute::TryParseVersion Method (String^, Version^)

 

Tries to parse a string into a version.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

protected:
bool TryParseVersion(
	String^ input,
	[OutAttribute] Version^% result
)

Parameters

input
Type: System::String^

String to be parsed.

result
Type: System::Version^

A Version containing the results of the parsed string.

Return Value

Type: System::Boolean

true if the string was parsed successfully, false if the string was not parsed successfully.

Unlike TryParse, this method ensures that the input consists of four numbers, as opposed to considering the build and revision numbers optional.

Return to top
Show: