次の方法で共有


ManagementGroup.GetRelatedPartialMonitoringObjects<T> Method (ICollection<T>, IList<MonitoringClass>)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

GetsPartialMonitoringObject instances that are related to the specifiedMonitoringObject objects and that are scoped by the specified types (monitoring classes) or by any of the derived types. You also specify the traversal depth that you want to be used while searching for related monitoring objects.

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

Syntax

[ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")]
public Dictionary<T, ReadOnlyCollection<PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<T>(
    ICollection<T> monitoringObjects,
    IList<MonitoringClass> monitoringClasses
)
where T : PartialMonitoringObjectBase
public:
generic<typename T>
where T : PartialMonitoringObjectBase
[ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")]
Dictionary<T, ReadOnlyCollection<PartialMonitoringObject^>^>^ GetRelatedPartialMonitoringObjects(
    ICollection<T>^ monitoringObjects,
    IList<MonitoringClass^>^ monitoringClasses
)
[<ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")>]
member GetRelatedPartialMonitoringObjects<'T when 'T : PartialMonitoringObjectBase> : 
        monitoringObjects:ICollection<'T> *
        monitoringClasses:IList<MonitoringClass> -> Dictionary<'T, ReadOnlyCollection<PartialMonitoringObject>>
<ObsoleteAttribute("Please use EntityObjects.GetRelatedObjects<T>()")>
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (
    monitoringObjects As ICollection(Of T),
    monitoringClasses As IList(Of MonitoringClass)
) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))

Parameters

Return Value

Type: System.Collections.Generic.Dictionary<T, ReadOnlyCollection<PartialMonitoringObject>>

Returns aDictionary<TKey, TValue> that relates collections of partial monitoring objects to given types.

Type Parameters

Remarks

When you consider whether to use the GetRelatedMonitoringObjects<T>method or theGetRelatedPartialMonitoringObjects<T>method, refer to the information in Monitoring Object and Partial Monitoring Object Comparison

See Also

GetRelatedPartialMonitoringObjects Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top