ProvideDependentAssemblyAttribute.TryParseVersion Method
Tries to parse a string into a version.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaração
Protected Function TryParseVersion ( _
input As String, _
<OutAttribute> ByRef result As Version _
) As Boolean
protected bool TryParseVersion(
string input,
out 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.
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.