Share via


elements Element

Applies To: Windows Server 2008

The elements element represents the types of optional parameters defined in a policy setting. The child elements for the elements element represent these optional parameters available for a policy setting.

Syntax

     <elements>
       <boolean> … </boolean>
       <decimal> … </decimal>
       <text> … </text>
       <enum> … </enum>
       <list> … </list>
     </elements>

Attributes

There are no attributes associated with this element.

Child elements

Element Required Description

boolean Element

No. At least one element must be defined.

Represents a choice element in a policy with associated values for the true and false cases.

decimal Element (elements)

No. At least one element must be defined.

Represents a number/decimal element in a policy. The number can be defined to be stored as either a numeric or string representative value.

text Element

No. At least one element must be defined.

Represents a text element in a policy.

enum Element

No. At least one element must be defined.

Represents an enumeration element.

list Element

No. At least one element must be defined.

Represents a list element in a policy.

Note

For simplicity of documentation, nested elements located one level down, known as child elements, will only be described for a given element.

Remarks

If the elements element is defined, it must contain at least one child element. The number and type of elements defined in the .admx file must match the presentation elements defined in the corresponding .adml file.

Examples

This XML fragment is an example of the elements specifying two check box parameters.

      <elements>
        <boolean id="Checkbox_1" valueName="Example2Checkbox1">
          <trueValue>
            <decimal value="1" />
          </trueValue>
          <falseValue>
            <decimal value="0" />
          </falseValue>
        </boolean>
        <boolean id="Checkbox_2" valueName="Example2Checkbox2">
          <trueValue>
            <decimal value="0" />
          </trueValue>
          <falseValue>
            <decimal value="1" />
          </falseValue>
        </boolean>
      </elements>

Additional references

policy Element