Share via


Property (DiscoveryClass)

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

Represents a class type property to be populated at discovery.

Schema Hierarchy

ManagementPack
  Monitoring
    Discoveries
      Discovery
        DiscoveryTypes
          DiscoveryClass
            Property (DiscoveryClass)

Syntax

<Property TypeID=”ClassTypeID” PropertyID=”PropertyID”/>

Attributes and Elements

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

Attributes

Attribute Description

TypeID

The ID of the class type that declares the property referred to by the PropertyID attribute.

PropertyID

The ID of the property to be populated at discovery.

Child Elements

None.

Parent Elements

Element Description

DiscoveryClass

Declares the class type of the instances to be discovered.

Remarks

The value of TypeID is always the class type ID that declares the property. If the property is declared in the class type referenced by the DiscoveryClass element’s TypeID attribute, it will be identical to that value. However, if the property is declared on a base class in the ancestry tree of the class type, the TypeID will be the ID of that base class. For clarification, see the sample that follows.

Example

The following sample XML shows how to specify the properties that will be populated at discovery time. The first four properties are declared within the ClassType definition of the Microsoft.Exchange2007.Component.Database class type from the Microsoft.Exchange.Server.2007.Library management pack. However, the DisplayName property is declared in the System.Entity class type from the System.Library management pack. The System.Entity class type is the base class type for all class types in a management pack.

<DiscoveryClass TypeID="ExLibrary!Microsoft.Exchange2007.Component.Database.PrivateMdb">
  <Property TypeID="ExLibrary!Microsoft.Exchange2007.Component.Database" PropertyID="Identity" />
  <Property TypeID="ExLibrary!Microsoft.Exchange2007.Component.Database" PropertyID="EdbFilePath" />
  <Property TypeID="ExLibrary!Microsoft.Exchange2007.Component.Database" PropertyID="LogFilePath" />
  <Property TypeID="ExLibrary!Microsoft.Exchange2007.Component.Database" PropertyID="MountAtStartup" />
  <Property TypeID="System!System.Entity" PropertyID="DisplayName" />
</DiscoveryClass>
…
<ClassType ID="Microsoft.Exchange2007.Component.Database" Accessibility="Public" Abstract="true" Base="Microsoft.Exchange2007.Component" Hosted="true" Singleton="false">
  <Property ID="Identity" Type="string" Key="true" CaseSensitive="false" Length="256" MinLength="0" />
  <Property ID="EdbFilePath" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
  <Property ID="LogFilePath" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
  <Property ID="MountAtStartup" Type="bool" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
…
<ClassType ID="System.Entity" Accessibility="Public" Hosted="false" Abstract="true" Singleton="false">
  <Property ID="DisplayName" Type="string" MinLength="0" Key="false" CaseSensitive="false" Length="256"/>
</ClassType>

See Also

Reference

ClassType
DiscoveryClass