DataType

System Center

Updated: May 18, 2012

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

Represents a data type definition in a management pack.


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

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

 

ValueDescription

Public

Indicates that external management packs can reference this data type.

Internal

Indicates that external management packs cannot reference this data type.

Child Elements

 

ElementDescription

Implementation (DataType)

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

Parent Elements

 

ElementDescription

DataTypes

Contains data type definitions in a management pack.

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

noteNote
Custom data type creation is not supported in Operations Manager 2007 R2.

The following snippet shows how a data type, written in native code, is defined within the System.Performance management pack.


<DataType ID="System.Performance.SignatureEntry" Base="System!System.BaseData" Accessibility="Public">
  <Implementation>
    <ClassID>AEB2011B-7AD5-4A03-910F-312228EAE0F7</ClassID>
  </Implementation>
</DataType>

The following is a snippet that shows a data type has been written in managed code. The data type is defined in the Microsoft.SystemCenter.Library management pack.


<DataType ID="Microsoft.SystemCenter.DataItemAlertSubscription" Comment="alert change data item type" Accessibility="Public" Base="System!System.BaseData">
  <Implementation>
    <Assembly>Microsoft.Mom.AlertSubscriptionDataSourceModule, Culture="", PublicKeyToken="31bf3856ad364e35", Version="6.0.4900.0"</Assembly>
    <Type>Microsoft.EnterpriseManagement.Mom.
AlertSubscriptionModule.DataItemAlertSubscription</Type>
  </Implementation>
</DataType>

This final snippet shows a data type has been written in both native and managed code. The data type is defined in the System.Performance management pack.


<DataType ID="System.Performance.SignatureData" Base="System!System.BaseData" Accessibility="Public">
  <Implementation>
    <Assembly>Microsoft.Mom.Modules.DataTypes, Culture="", PublicKeyToken="31bf3856ad364e35", Version="6.0.4900.0"</Assembly>
    <Type>Microsoft.EnterpriseManagement.Mom.
Modules.DataItems.Baselining.MOMSignatureDataItem</Type>
    <ClassID>5B44DF33-D67D-4500-85AE-7AE29CA11985</ClassID>
  </Implementation>
</DataType>

 
Show: