Share via


ManagementGroup.GetRelatedMonitoringObjects Method

Definition

Retrieves the monitoring object instances that are related to the specified monitoring objects provided by any containment relationship.

Overloads

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringObjectCriteria, TraversalDepth)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

GetRelatedMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>, TraversalDepth)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

GetRelatedMonitoringObjects<T>(ICollection<T>, ICollection<MonitoringObjectCriteria>, TraversalDepth)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass, TraversalDepth)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by the given relationship.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringClass, TraversalDepth)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

GetRelatedMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringObjectCriteria)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by the given relationship, or any relationship that derives from it.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringClass)
Obsolete.

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringObjectCriteria, TraversalDepth)

Caution

Please use MonitoringInstances.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use MonitoringInstances.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), criteria As MonitoringObjectCriteria, traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

criteria
MonitoringObjectCriteria

The criteria to apply on the related instance.

traversalDepth
TraversalDepth

Whether to recurse down the "Containment" relationship instance space for the monitoringObjects.

Returns

A dictionary relating the collection of instances provided with those that relate to it after applying the specified critiria.

Attributes

Exceptions

monitoringObjects or criteria is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>, TraversalDepth)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^> ^ monitoringClasses, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> monitoringClasses, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClasses As IList(Of MonitoringClass), traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

monitoringClasses
IList<MonitoringClass>

The monitoring classes.

traversalDepth
TraversalDepth

Whether to recurse down the given relationship types instance space for the monitoringObjects.

Returns

A dictionary relating the collection of instances provided with those that relate to it by Membership of the given type.

Attributes

Exceptions

monitoringObjects or monitoringClass is null

monitoringObjects is empty

monitoringObjects contained duplicates

Remarks

For information about accessing monitoring object information, see How to Display Information about a Monitoring Object.

When you consider whether to use the GetRelatedMonitoringObjectsmethod or the GetRelatedPartialMonitoringObjectsmethod, refer to the information in Monitoring Object and Partial Monitoring Object Comparison

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, ICollection<MonitoringObjectCriteria>, TraversalDepth)

Caution

Please use MonitoringInstances.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^> ^ criteriaCollection, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use MonitoringInstances.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> criteriaCollection, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), criteriaCollection As ICollection(Of MonitoringObjectCriteria), traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

criteriaCollection
ICollection<MonitoringObjectCriteria>

The criteria to apply on the related instance.

traversalDepth
TraversalDepth

The depth to traverse for objects.

Returns

A dictionary relating the collection of instances provided with those that relate to it after applying the specified critiria.

Attributes

Exceptions

monitoringObjects or criteriaCollection is null

monitoringObjects or criteriaCollection is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass, TraversalDepth)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by the given relationship.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), relationshipClass As MonitoringRelationshipClass, traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of typePartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

relationshipClass
MonitoringRelationshipClass

The relationship class to query by..

traversalDepth
TraversalDepth

Whether to recurse down the given relationship types instance space for the monitoringObjects.

Returns

A dictionary relating the collection of instances provided with those that relate to it by the given relationship type.

Attributes

Exceptions

monitoringObjects or relationshipType is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringClass, TraversalDepth)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Configuration.MonitoringClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClass As MonitoringClass, traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of typePartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

monitoringClass
MonitoringClass

The monitoring class to scope results by.

traversalDepth
TraversalDepth

Whether to recurse down the given relationship types instance space for the monitoringObjects.

Returns

A dictionary relating the collection of instances provided with those that relate to it by Membership of the given type.

Attributes

Exceptions

monitoringObjects or monitoringClass is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^> ^ monitoringClasses);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> monitoringClasses) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClasses As IList(Of MonitoringClass)) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

monitoringClasses
IList<MonitoringClass>

The monitoring classes.

Returns

A dictionary relating the collection of instances provided with those that relate to it by Membership of the given type.

Attributes

Exceptions

monitoringObjects or monitoringClass is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringObjectCriteria)

Caution

Please use MonitoringInstances.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by any containment relationship and of the specified criteria.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria);
[System.Obsolete("Please use MonitoringInstances.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), criteria As MonitoringObjectCriteria) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

criteria
MonitoringObjectCriteria

The criteria to apply on the related instance.

Returns

A dictionary relating the collection of instances provided with those that relate to it after applying the specified critiria.

Attributes

Exceptions

monitoringObjects or criteria is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by the given relationship, or any relationship that derives from it.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), relationshipClass As MonitoringRelationshipClass) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

relationshipClass
MonitoringRelationshipClass

The relationship class to query by..

Returns

A dictionary relating the collection of instances provided with those that relate to it by the given relationship type.

Attributes

Exceptions

monitoringObjects or relationshipType is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to

GetRelatedMonitoringObjects<T>(ICollection<T>, MonitoringClass)

Caution

Please use EntityObjects.GetRelatedObjects<T>()

This method will find any MonitoringObject instances that are related to the MonitoringObjects provided by Membership, and of the given type or any derived types.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObjectBase System::Collections::Generic::Dictionary<T, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass);
[System.Obsolete("Please use EntityObjects.GetRelatedObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> * Microsoft.EnterpriseManagement.Configuration.MonitoringClass -> System.Collections.Generic.Dictionary<'T, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClass As MonitoringClass) As Dictionary(Of T, ReadOnlyCollection(Of MonitoringObject))

Type Parameters

T

Must be of typePartialMonitoringObject.

Parameters

monitoringObjects
ICollection<T>

The monitoring objects to find related entities for.

monitoringClass
MonitoringClass

The monitoring class to scope results by.

Returns

A dictionary relating the collection of instances provided with those that relate to it by Membership of the given type.

Attributes

Exceptions

monitoringObjects or monitoringClass is null

monitoringObjects is empty

monitoringObjects contained duplicates

Applies to