Share via


IMonitoringInstancesManagement.GetRelatedObjects Method

Definition

Overloads

GetRelatedObjects(ICollection<Guid>, MonitoringObjectCriteria, TraversalDepth, ObjectQueryOptions)

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

GetRelatedObjects(ICollection<Guid>, ICollection<MonitoringObjectCriteria>, TraversalDepth, ObjectQueryOptions)

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

GetRelatedObjects(Guid, MonitoringObjectCriteria, TraversalDepth, ObjectQueryOptions)

This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type with the specified criteria.

GetRelatedObjects(Guid, ICollection<MonitoringObjectCriteria>, TraversalDepth, ObjectQueryOptions)

This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the specified criterias.

GetRelatedObjects<T>(Guid, MonitoringObjectGenericCriteria, TraversalDepth, ObjectQueryOptions)

This method will find any PartialMonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type with the specified criteria.

GetRelatedObjects(ICollection<Guid>, MonitoringObjectCriteria, TraversalDepth, ObjectQueryOptions)

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

public:
 System::Collections::Generic::Dictionary<Guid, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedObjects(System::Collections::Generic::ICollection<Guid> ^ instanceIds, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth, Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.Dictionary<Guid,System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedObjects (System.Collections.Generic.ICollection<Guid> instanceIds, Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth, Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions);
abstract member GetRelatedObjects : System.Collections.Generic.ICollection<Guid> * Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth * Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.Dictionary<Guid, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>>
Public Function GetRelatedObjects (instanceIds As ICollection(Of Guid), criteria As MonitoringObjectCriteria, traversalDepth As TraversalDepth, queryOptions As ObjectQueryOptions) As Dictionary(Of Guid, IList(Of MonitoringObject))

Parameters

instanceIds
ICollection<Guid>

The instance ids.

criteria
MonitoringObjectCriteria

The criteria to apply on the related instance.

traversalDepth
TraversalDepth

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

queryOptions
ObjectQueryOptions

The query options.

Returns

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

Exceptions

instances or criteria is null

instances is empty

instances contained duplicates

Applies to

GetRelatedObjects(ICollection<Guid>, ICollection<MonitoringObjectCriteria>, TraversalDepth, ObjectQueryOptions)

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

public:
 System::Collections::Generic::Dictionary<Guid, System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^> ^ GetRelatedObjects(System::Collections::Generic::ICollection<Guid> ^ instanceIds, System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^> ^ criteriaCollection, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth, Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.Dictionary<Guid,System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>> GetRelatedObjects (System.Collections.Generic.ICollection<Guid> instanceIds, System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> criteriaCollection, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth, Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions);
abstract member GetRelatedObjects : System.Collections.Generic.ICollection<Guid> * System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> * Microsoft.EnterpriseManagement.Common.TraversalDepth * Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.Dictionary<Guid, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>>
Public Function GetRelatedObjects (instanceIds As ICollection(Of Guid), criteriaCollection As ICollection(Of MonitoringObjectCriteria), traversalDepth As TraversalDepth, queryOptions As ObjectQueryOptions) As Dictionary(Of Guid, IList(Of MonitoringObject))

Parameters

instanceIds
ICollection<Guid>

The instance ids.

criteriaCollection
ICollection<MonitoringObjectCriteria>

The criteria to apply on the related instance.

traversalDepth
TraversalDepth

The depth to traverse for objects.

queryOptions
ObjectQueryOptions

The query options.

Returns

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

Exceptions

instances or criteriaCollection is null

instances or criteriaCollection is empty

instances contained duplicates

Applies to

GetRelatedObjects(Guid, MonitoringObjectCriteria, TraversalDepth, ObjectQueryOptions)

This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type with the specified criteria.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedObjects(Guid instanceId, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth, Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedObjects (Guid instanceId, Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth, Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions);
abstract member GetRelatedObjects : Guid * Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth * Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedObjects (instanceId As Guid, criteria As MonitoringObjectCriteria, traversalDepth As TraversalDepth, queryOptions As ObjectQueryOptions) As IList(Of MonitoringObject)

Parameters

instanceId
Guid

The instance id.

criteria
MonitoringObjectCriteria

The criteria to query by.

traversalDepth
TraversalDepth

Whether to recurse down the "Containment" relationship instance space for this monitoring object.

queryOptions
ObjectQueryOptions

The query options.

Returns

A collection of MonitoringObject objects.

Exceptions

criteria is null.

Applies to

GetRelatedObjects(Guid, ICollection<MonitoringObjectCriteria>, TraversalDepth, ObjectQueryOptions)

This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the specified criterias.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedObjects(Guid instanceId, System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^> ^ criteriaCollection, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth, Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedObjects (Guid instanceId, System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> criteriaCollection, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth, Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions);
abstract member GetRelatedObjects : Guid * System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> * Microsoft.EnterpriseManagement.Common.TraversalDepth * Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedObjects (instanceId As Guid, criteriaCollection As ICollection(Of MonitoringObjectCriteria), traversalDepth As TraversalDepth, queryOptions As ObjectQueryOptions) As IList(Of MonitoringObject)

Parameters

instanceId
Guid

The instance id.

criteriaCollection
ICollection<MonitoringObjectCriteria>

The criteria to query by.

traversalDepth
TraversalDepth

The depth to traverse for objects.

queryOptions
ObjectQueryOptions

The query options.

Returns

A collection of MonitoringObject objects.

Exceptions

criteriaCollection is null.

criteriaCollection is empty.

Applies to

GetRelatedObjects<T>(Guid, MonitoringObjectGenericCriteria, TraversalDepth, ObjectQueryOptions)

This method will find any PartialMonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type with the specified criteria.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject System::Collections::Generic::IList<T> ^ GetRelatedObjects(Guid instanceId, Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectGenericCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth, Microsoft::EnterpriseManagement::Common::ObjectQueryOptions ^ queryOptions);
public System.Collections.Generic.IList<T> GetRelatedObjects<T> (Guid instanceId, Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth, Microsoft.EnterpriseManagement.Common.ObjectQueryOptions queryOptions) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
abstract member GetRelatedObjects : Guid * Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth * Microsoft.EnterpriseManagement.Common.ObjectQueryOptions -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function GetRelatedObjects(Of T As PartialMonitoringObject) (instanceId As Guid, criteria As MonitoringObjectGenericCriteria, traversalDepth As TraversalDepth, queryOptions As ObjectQueryOptions) As IList(Of T)

Type Parameters

T

Parameters

instanceId
Guid

The instance id.

criteria
MonitoringObjectGenericCriteria

The criteria to query by.

traversalDepth
TraversalDepth

Whether to recurse down the "Containment" relationship instance space for this monitoring object.

queryOptions
ObjectQueryOptions

The query options.

Returns

IList<T>

A collection of PartialMonitoringObject objects.

Applies to