SilverlightHost.IsVersionSupported Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a value that indicates whether the specified version is supported.

Namespace:  System.Windows.Interop
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Public Function IsVersionSupported ( _
    versionStr As String _
) As Boolean
public bool IsVersionSupported(
    string versionStr
)

Parameters

  • versionStr
    Type: System..::.String
    The version to check, in the form of major.minor.build.revision See Remarks for more information about the string form.

Return Value

Type: System..::.Boolean
true if the version can be supported by the installation; otherwise, false.

Remarks

The version string contains one through four integer values that are separated by dots, for example, "2.0.30908.0". The sequence of integers represents the major, minor, build, and revision numbers.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

SilverlightHost Class

System.Windows.Interop Namespace