Partager via


EnumerationTypes

Applies To: System Center Service Manager 2010

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Contains definitions of enumeration types used to restrict the value of a class type property.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    EntityTypes
      EnumerationTypes

Syntax

<EnumerationTypes>
   <EnumerationValue ID=”EnumerationID.Value” Comment=”string” Accessibility=”Internal/Public” Parent=”EnumerationTypeID” Ordinal=”double”>…</EnumerationValue>
</EnumerationTypes>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element for the EnumerationTypes element.

Attributes

None.

Child Elements

Element Description

EnumerationValue

Optional element. Represents an enumeration value within an enumeration set.

Parent Elements

Element Description

EntityTypes

Contains class type, relationship type, enumeration type, and type projection definitions.

Example

The following XML sample shows how to define enumeration type sets within a management pack.

<EnumerationTypes>
  <EnumerationValue ID="Ticket" Accessibility="Public" />
  <EnumerationValue ID="Ticket.Open" Parent="Ticket"/>
  <EnumerationValue ID="Ticket.Closed" Parent="Ticket"/>

  <EnumerationValue ID="User" Accessibility="Public" />
  <EnumerationValue ID="User.TicketsOpened" Parent="User"/>
  <EnumerationValue ID="User.TicketsClosed" Parent="User"/>
  <EnumerationValue ID="User.NoTickets" Parent="User"/>
</EnumerationTypes>

See Also

Reference

EnumerationValue
EntityTypes