Freigeben über


ProvideDependentAssemblyAttribute.TryParseVersion(String, Version) Method

Definition

Try to parse a string into a Version. Unlike Version.TryParse, this method ensures that the input consists of four numbers, as opposed to considering the build and revision numbers optional.

protected:
 bool TryParseVersion(System::String ^ input, [Runtime::InteropServices::Out] Version ^ % result);
protected bool TryParseVersion (string input, out Version result);
member this.TryParseVersion : string * Version -> bool
Protected Function TryParseVersion (input As String, ByRef result As Version) As Boolean

Parameters

input
String

String to be parsed.

result
Version

A Version containing the results of the parsed string.

Returns

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

Remarks

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

Applies to