Deployment Tools Foundation
GetFeatureState Method (feature)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► ProductInstallation ► GetFeatureState(String)
Gets the installed state for a product feature.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public InstallState GetFeatureState( string feature )
Public Function GetFeatureState ( feature As String ) As InstallState
public: InstallState GetFeatureState( String^ feature )
member GetFeatureState : feature : string -> InstallState
Parameters
- feature (String)
- The feature being queried; identifier from the Feature table
Return Value
InstallState
Installation state of the feature for the product instance: either Local, Source, or Advertised.
Installation state of the feature for the product instance: either Local, Source, or Advertised.
Remarks
Win32 MSI APIs: MsiQueryFeatureState, MsiQueryFeatureStateEx
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)