Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves a collection of the partial monitoring object instances for the specified class that are related to the specified monitoring objects, with the option to include instances of derived classes.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
public Dictionary<T, ReadOnlyCollection<PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<T>(
ICollection<T> monitoringObjects,
MonitoringClass monitoringClass,
TraversalDepth traversalDepth
)
where T : PartialMonitoringObjectBase
public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
Dictionary<T, ReadOnlyCollection<PartialMonitoringObject^>^>^ GetRelatedPartialMonitoringObjects(
ICollection<T>^ monitoringObjects,
MonitoringClass^ monitoringClass,
TraversalDepth traversalDepth
)
[<ObsoleteAttribute("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")>]
member GetRelatedPartialMonitoringObjects<'T when 'T : PartialMonitoringObjectBase> :
monitoringObjects:ICollection<'T> *
monitoringClass:MonitoringClass *
traversalDepth:TraversalDepth -> Dictionary<'T, ReadOnlyCollection<PartialMonitoringObject>>
<ObsoleteAttribute("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")>
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (
monitoringObjects As ICollection(Of T),
monitoringClass As MonitoringClass,
traversalDepth As TraversalDepth
) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
Parameters
monitoringObjects
Type: System.Collections.Generic.ICollection<T>The monitoring objects to find related objects for.
monitoringClass
Type: Microsoft.EnterpriseManagement.Configuration.MonitoringClassThe monitoring class, with all its derived classes, that defines the range of the returned results.
traversalDepth
Type: Microsoft.EnterpriseManagement.Common.TraversalDepthA value that modifies the limits of the monitoringClass parameter. 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.Generic.Dictionary<T, ReadOnlyCollection<PartialMonitoringObject>>
Returns aDictionary<TKey, TValue> object ofPartialMonitoringObject objects.
Type Parameters
- T
Must be of type PartialMonitoringObject.
See Also
GetRelatedPartialMonitoringObjects Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top