GetFeatureState Method (feature)

DTF API

Copy image CopyHover image
Deployment Tools Foundation GetFeatureState Method (feature)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerProductInstallationGetFeatureState(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.
Remarks

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)