SchemaType
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 a reusable schema definition type within a management pack.
Schema Hierarchy
ManagementPack
TypeDefinitions
SchemaTypes
SchemaType
Syntax
<SchemaType ID=”Company.Product.SchemaTypeID” Comment=”Comment” Accessibility=”Public/Internal”>
</SchemaType>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the SchemaType 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 schema type. |
Accessibility Attribute
Value | Description |
---|---|
Public |
Indicates that this schema type is visible to external management packs for referencing. |
Internal |
Indicates that external management packs cannot reference this schema type. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
Contains reusable schema definitions types within a management pack. |
Text Value
The SchemaType element contains a reusable XML schema definition for use in many management pack elements such as ModuleTypes or MonitorType definitions. The content of a SchemaType element must follow standard XML schema guidelines. For more information regarding XML schemas, see Understanding XML Schema.
Remarks
Example
In the following sample, a SchemaTypes element contains the definition of a schema that models a workflow foundation write action. This schema definition can be found in the Microsoft.SystemCenter.WorkflowFoundation.Library management pack.
<SchemaTypes>
<SchemaType ID="Microsoft.SystemCenter.WorkflowFoundation.WorkflowFoundationWriteActionSchema" Comment="Scheme for the WorkflowFoundationWriteActionModule" Accessibility="Public">
<xsd:simpleType name="RetryDelaySecondsType">
<xsd:restriction base="xsd:nonNegativeInteger">
<xsd:minInclusive fixed="true" value="10" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="MaximumRunningTimeSecondsType">
<xsd:restriction base="xsd:nonNegativeInteger">
<xsd:minInclusive fixed="true" value="60" />
</xsd:restriction>
</xsd:simpleType>
</SchemaType>
</SchemaTypes>
In the following sample, a DataSourceModuleType element references the Microsoft.Windows.RegistryAttributeDefinitionsSchema
schema type defined above.
<DataSourceModuleType ID="Microsoft.Windows.RegistryProvider" Accessibility="Public">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>Microsoft.Windows.RegistryAttributeDefinitionsSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="ComputerName" type="xsd:string"/>
<xsd:element name="RegistryAttributeDefinitions" type="RegistryAttributeDefinitionsType"/>
<xsd:element name="Frequency" type="xsd:unsignedInt"/>
</Configuration>
…
</DataSourceModuleType>