RelationshipTypes
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 relationship types to be discovered.
Schema Hierarchy
ManagementPack
TypeDefinitions
EntityTypes
RelationshipTypes
Syntax
<RelationshipTypes>
<RelationshipType>…</RelationshipType>
</RelationshipTypes>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the RelationshipType element.
Attributes
None.
Child Elements
Element | Description |
---|---|
Optional element. Represents a relationship type definition in the management pack. |
Parent Elements
Element | Description |
---|---|
Contains class type, relationship type, enumeration type, and type projection definitions. |
Example
The following sample illustrates how relationship types are defined within a management pack. All of the relationship types implement System.Hosting as a base class, thus specifying a hosting relationship between the Source and the Target classes.
System.Hosting is defined in the external System.Library management pack using the Alias!ElementID
notation. For more information about how to reference an external management pack by using the Alias!ElementID
notation, see Reference (Manifest).
<RelationshipTypes>
<RelationshipType ID="Microsoft.Windows.ComputerHostsComputerRole" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.ComputerRole</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsLocalApplication" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.LocalApplication</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsLogicalDevice" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.LogicalDevice</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsOperatingSystem" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.OperatingSystem</Target>
</RelationshipType>
<RelationshipType ID="Microsoft.Windows.ComputerHostsSoftwareInstallation" Base="System!System.Hosting" Accessibility="Public">
<Source>Microsoft.Windows.Computer</Source>
<Target>Microsoft.Windows.SoftwareInstallation</Target>
</RelationshipType>
</RelationshipTypes>