Partager via


DataType

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.]

Represents a data type definition in a management pack.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    DataTypes
     DataType

Syntax

<DataType ID=”Company.Product.DataTypeID” Comment=”Comment” Accesibility=”Public/Internal” Base=”BaseDataTypeID”>
   <Implementation>…</Implementation>
</DataType>

Attributes and Elements

The following sections describe attributes, child elements, and parent element of the DataType element.

Attributes

Attribute Description

ID

Required attribute. Represents the identity of the element. To learn how to identify your element in a management pack, see Element Identity and Namespace Conventions.

Comment

Optional attribute. Represents commentary by the management pack author.

Accessibility

Required attribute. Defines the visibility of the data type.

Base

Required attribute. Contains the ID of the data type from which the data type inherits.

Accessibility Attribute Values

Value Description

Public

Indicates that external management packs can reference this data type.

Internal

Indicates that external management packs cannot reference this data type.

Child Elements

Element Description

Implementation (DataType)

Contains class or type and assembly information of the data type object implementation.

Parent Elements

Element Description

DataTypes

Contains data type definitions in a management pack.

Remarks

A management pack DataType element references a data structure that is passed between modules in a workflow.

Note

Custom data type creation is not supported.

Example

The following snippet shows how a data type, written in managed code, is defined within the Microsoft.SystemCenter.Orchestration management pack.

<DataType ID="Microsoft.SystemCenter.Orchestration.WorkflowDataItem" Base="System!System.BaseData" Accessibility="Public">
  <Implementation>
    <Assembly>Orchestration.WorkItem.Assembly</Assembly>
    <Type>Microsoft.SystemCenter.Orchestration.WorkflowDataItem</Type>
  </Implementation>
</DataType>

See Also

Reference

DataTypes
Implementation (DataType)