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 |