Feature Object
To create an object expression that checks target systems for information about a feature in an Advanced UI or Suite/Advanced UI installation, use the Feature object. The Feature object has support for properties such as DisplayName, ActionState, and InstalledState.
Syntax
[@Feature(FeatureName).ActionState]
[@Feature(FeatureName).AllowSelectionChange]
[@Feature(FeatureName).Cost]
[@Feature(FeatureName).Description]
[@Feature(FeatureName).DisplayName]
[@Feature(FeatureName).InstalledState]
[@Feature(FeatureName).Visible]
Parameters
One parameter is available for the Feature object.
Parameter |
Description |
FeatureName |
Specify the name of the feature. |
Properties
The following properties are available for the Feature object.
Property |
Description |
|||||||||
ActionState |
Retrieves the currently set action state of the feature. Valid values are:
|
|||||||||
AllowSelectionChange |
Retrieves a Boolean value that indicates whether end users should be allowed to select or deselect the feature on the InstallationFeatures wizard page. Valid values are:
|
|||||||||
Cost |
Retrieves how much space (in bytes) the feature requires on the target system if this value was specified in the Features view. |
|||||||||
Description |
Retrieves the localized description of the feature. |
|||||||||
DisplayName |
Retrieves the localized display name of the feature. |
|||||||||
InstalledState |
Retrieves the installed state of the feature as determined by the package detection states of the packages in the feature. Valid values are:
|
|||||||||
Visible |
Retrieves a Boolean value that indicates whether the feature should be visible on the InstallationFeatures wizard page during installation. |
Examples
The following examples demonstrate use of the Feature object in object expressions.
Expression |
Description |
[@Feature(FeatureABC).ActionState] |
Determine whether the Advanced UI or Suite/Advanced UI is installing the FeatureABC feature. |
[@Feature(FeatureABC).Cost] |
Determine how much space (in bytes) the feature requires. |