次の方法で共有


MonitoringClass.GetParentMonitoringClasses Method (DerivedClassTraversalDepth, MonitoringRelationshipClass, TraversalDepth)

 

Applies To: Operations Manager for System Center 2012

Retrieves all the monitoring object classes that are sources of the specified relationship type where this class is the target.

Namespace:   Microsoft.EnterpriseManagement.Configuration
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Syntax

public ReadOnlyCollection<MonitoringClass> GetParentMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass relationshipClass,
    TraversalDepth traversalDepth
)
public:
ReadOnlyCollection<MonitoringClass^>^ GetParentMonitoringClasses(
    DerivedClassTraversalDepth derivedClassTraversalDepth,
    MonitoringRelationshipClass^ relationshipClass,
    TraversalDepth traversalDepth
)
member GetParentMonitoringClasses : 
        derivedClassTraversalDepth:DerivedClassTraversalDepth *
        relationshipClass:MonitoringRelationshipClass *
        traversalDepth:TraversalDepth -> ReadOnlyCollection<MonitoringClass>
Public Function GetParentMonitoringClasses (
    derivedClassTraversalDepth As DerivedClassTraversalDepth,
    relationshipClass As MonitoringRelationshipClass,
    traversalDepth As TraversalDepth
) As ReadOnlyCollection(Of MonitoringClass)

Parameters

  • traversalDepth
    Type: Microsoft.EnterpriseManagement.Common.TraversalDepth

    Determines whether to include only instances of the base class or instances of derived classes in the returned results. A value of OneLevel includes only instances of the specified class in the scope of the returned results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringClass>

Returns a ReadOnlyCollection<T> of MonitoringClass objects.

See Also

MonitoringClass Class
Microsoft.EnterpriseManagement.Configuration Namespace

Return to top