Feature Element
Applies To: Windows Server 2012 Essentials, Windows Home Server 2011, Windows Storage Server 2008 R2 Essentials, Windows Small Business Server 2011 Essentials
Defines the behavior and attributes of the health add-in.
<xs:element name="Feature" type="FeatureElement">
<xs:unique name="UniqueDefinitionName">
<xs:selector xpath="HealthDefinitions/HealthDefinition" />
<xs:field xpath="@Name" />
</xs:unique>
</xs:element>
<xs:complexType name="FeatureElement">
<xs:sequence>
<xs:element name="Filter" maxOccurs="1" minOccurs="0">...</xs:element>
<xs:element name="HealthDefinitions" maxOccurs="1" minOccurs="0">...</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:ID" use="required" />
<xs:attribute name="Title" type="xs:string" use="required" />
</xs:complexType>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
Name | Required ID attribute. Specifies the name of the health add-in. The name must be unique among all of the installed add-ins. |
Title | Required string attribute Specifies the title that is displayed for the health add-in. |
Child Elements
Element | Description |
---|---|
Filter Element (Feature) | An optional element that specifies whether the health add-in is applicable to the current version of the operating system. The action for this element can be a PowerShell script or a managed assembly that returns true if the health add-in is applicable to the current version of the operating system; otherwise the action returns false . For more information about identifying the version of the operating system, see Operating System Version (https://go.microsoft.com/fwlink/?LinkId=179327). |
HealthDefinitions Element | Represents the notifications and actions that are used to report and repair issues with operating system features. |
Parent Elements
None.