Deployment Tools Foundation
Attributes Property
Gets or sets the attributes of the feature.
![](collapse_all.gif)
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); }
![](collapse_all.gif)
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.
![](collapse_all.gif)
Exception | Condition |
---|---|
InvalidHandleException | the Session handle is invalid |
ArgumentException | an unknown feature was requested |