Freigeben über


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

'Declaration
Protected Function TryParseVersion ( _
    input As String, _
    <OutAttribute> ByRef result As Version _
) As Boolean
protected bool TryParseVersion(
    string input,
    out Version result
)

Parameters

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

See Also

Reference

ProvideDependentAssemblyAttribute Class

Microsoft.VisualStudio.Shell Namespace