System.Windows.Forms.OSFeature.GetVersionPresent Method

Retrieves the version of the specified feature currently available on the system.

Syntax

public override Version GetVersionPresent (object feature)

Parameters

feature
The feature whose version is requested, either OSFeature.LayeredWindows or OSFeature.Themes.

Returns

A Version representing the version of the specified operating system feature currently available on the system; or null if the feature cannot be found.

Remarks

Use the OSFeature.Feature property, the static instance of System.Windows.Forms.OSFeature provided in this class, to query for the version number of a feature.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0