When overridden in a derived class, retrieves the version of the specified feature currently available on the system.
[Visual Basic] Overloads MustOverride Public Function GetVersionPresent( _ ByVal feature As Object _ ) As Version [C#] public abstract Version GetVersionPresent( object feature ); [C++] public: virtual Version* GetVersionPresent( Object* feature ) = 0; [JScript] public abstract function GetVersionPresent( feature : Object ) : Version;
A Version representing the version of the specified feature available on the system. If the feature is present but does not have a version associated with it, such as a feature that is either present or absent, System.WinForms.VersionNumber.ZERO will be returned. If the feature is not present in any version or the class containing information about the feature could not be loaded, System.WinForms.VersionNumber.INVALID will be returned.
Inherit from FeatureSupport and provide your own implementation of GetVersionPresent if the classes you query for feature information do not implement the IFeatureSupport interface. See OSFeature for an example of a class that inherits FeatureSupport.
Notes to Inheritors: When you inherit from FeatureSupport, you must override GetVersionPresent. Unless you also override IsPresent, the class of the feature parameter passed to implementations of IsPresent in this class must be the same as the class of the feature parameter defined in your implementation of GetVersionPresent.
FeatureSupport Class | FeatureSupport Members | System.WinForms Namespace | FeatureSupport.GetVersionPresent Overload List | GetVersionPresent