Attributes Property

Microsoft Deployment Tools

Deployment Tools Foundation Attributes Property
Gets or sets the attributes of the feature.
Declaration Syntax
C# Visual Basic Visual C++
public FeatureAttributes Attributes { get; set; }
Public Property Attributes As FeatureAttributes
public:
property FeatureAttributes Attributes {
	FeatureAttributes get ();
	void set (FeatureAttributes value);
}
Remarks

Win32 MSI APIs: MsiGetFeatureInfo, MsiSetFeatureAttributes

Since the lpAttributes paramter of MsiGetFeatureInfo does not contain an equivalent flag for UIDisallowAbsent, this flag will not be retrieved.

Since the dwAttributes parameter of MsiSetFeatureAttributes does not contain an equivalent flag for UIDisallowAbsent, the presence of this flag will be ignored.

Exceptions
Exception Condition
InvalidHandleException the Session handle is invalid
ArgumentException an unknown feature was requested

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)