ProvideDependentAssemblyAttribute.TryParseVersion Method
Tries to parse a string into a version.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Protected Function TryParseVersion ( _
input As String, _
<OutAttribute> ByRef result As Version _
) As Boolean
protected bool TryParseVersion(
string input,
out Version result
)
protected:
bool TryParseVersion(
String^ input,
[OutAttribute] Version^% result
)
member TryParseVersion :
input:string *
result:Version byref -> bool
protected function TryParseVersion(
input : String,
result : Version
) : boolean
Parameters
input
Type: StringString to be parsed.
result
Type: Version%A Version containing the results of the parsed string.
Return Value
Type: Boolean
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.