PartialMonitoringObjectBase.GetRelatedMonitoringObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets all the monitoring objects that are related to this object.
Overloads
GetRelatedMonitoringObjects(ICollection<MonitoringObjectCriteria>, TraversalDepth) |
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the specified criterias. |
GetRelatedMonitoringObjects(MonitoringObjectGenericCriteria, TraversalDepth) |
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. |
GetRelatedMonitoringObjects(MonitoringRelationshipClass, TraversalDepth) |
This method will find any MonitoringObject instances that share the given relationshipType with this object. |
GetRelatedMonitoringObjects(ManagementPackClass, TraversalDepth) |
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type and any derived types, allowing for abstract types to be specified. |
GetRelatedMonitoringObjects(MonitoringObjectGenericCriteria) |
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. |
GetRelatedMonitoringObjects(MonitoringObjectCriteria, TraversalDepth) |
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. |
GetRelatedMonitoringObjects(MonitoringRelationshipClass) |
This method will find any MonitoringObject instances that share the given relationshipType with this object. |
GetRelatedMonitoringObjects(ManagementPackClass) |
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type and any derived types, allowing for abstract types to be specified. |
GetRelatedMonitoringObjects(TraversalDepth) |
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship. |
GetRelatedMonitoringObjects() |
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship. |
GetRelatedMonitoringObjects(MonitoringObjectCriteria) |
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. |
GetRelatedMonitoringObjects(ICollection<MonitoringObjectCriteria>, TraversalDepth)
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the specified criterias.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(System::Collections::Generic::ICollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^> ^ criteriaCollection, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> criteriaCollection, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : System.Collections.Generic.ICollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria> * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (criteriaCollection As ICollection(Of MonitoringObjectCriteria), traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- criteriaCollection
- ICollection<MonitoringObjectCriteria>
The criteria to query by.
- traversalDepth
- TraversalDepth
The depth to traverse for objects.
Returns
A collection of MonitoringObject objects.
Exceptions
criteriaCollection is null.
criteriaCollection is empty.
Applies to
GetRelatedMonitoringObjects(MonitoringObjectGenericCriteria, TraversalDepth)
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::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectGenericCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (criteria As MonitoringObjectGenericCriteria, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- criteria
- MonitoringObjectGenericCriteria
The criteria to query by.
- traversalDepth
- TraversalDepth
Whether to recurse down the "Containment" relationship instance space for this monitoring object.
Returns
A collection of MonitoringObject objects.
Applies to
GetRelatedMonitoringObjects(MonitoringRelationshipClass, TraversalDepth)
This method will find any MonitoringObject instances that share the given relationshipType with this object.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (relationshipClass As MonitoringRelationshipClass, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- relationshipClass
- MonitoringRelationshipClass
The relationship class to query for.
- traversalDepth
- TraversalDepth
The depth to traverse for objects.
Returns
A collection of MonitoringObject objects.
Exceptions
relationshipType is null.
Applies to
GetRelatedMonitoringObjects(ManagementPackClass, TraversalDepth)
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type and any derived types, allowing for abstract types to be specified.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (managementPackClass As ManagementPackClass, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- managementPackClass
- ManagementPackClass
The type to query by.
- traversalDepth
- TraversalDepth
Whether to recurse down the "Containment" relationship instance space for this monitoring object.
Returns
A collection of MonitoringObject objects.
Exceptions
managementPackClass is null.
Applies to
GetRelatedMonitoringObjects(MonitoringObjectGenericCriteria)
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::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectGenericCriteria ^ criteria);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria criteria);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectGenericCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (criteria As MonitoringObjectGenericCriteria) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- criteria
- MonitoringObjectGenericCriteria
The criteria to query by.
Returns
A collection of MonitoringObject objects.
Exceptions
criteria is null.
Applies to
GetRelatedMonitoringObjects(MonitoringObjectCriteria, TraversalDepth)
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::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (criteria As MonitoringObjectCriteria, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- criteria
- MonitoringObjectCriteria
The criteria to query by.
- traversalDepth
- TraversalDepth
Whether to recurse down the "Containment" relationship instance space for this monitoring object.
Returns
A collection of MonitoringObject objects.
Exceptions
criteria is null.
Applies to
GetRelatedMonitoringObjects(MonitoringRelationshipClass)
This method will find any MonitoringObject instances that share the given relationshipType with this object.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (relationshipClass As MonitoringRelationshipClass) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- relationshipClass
- MonitoringRelationshipClass
The relationship class to query for.
Returns
A collection of MonitoringObject objects.
Exceptions
relationshipType is null.
Applies to
GetRelatedMonitoringObjects(ManagementPackClass)
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship of the given type and any derived types, allowing for abstract types to be specified.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (managementPackClass As ManagementPackClass) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- managementPackClass
- ManagementPackClass
The type to query by.
Returns
A collection of MonitoringObject objects.
Exceptions
managementPackClass is null.
Applies to
GetRelatedMonitoringObjects(TraversalDepth)
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- traversalDepth
- TraversalDepth
Whether to recurse down the "Containment" relationship instance space for this monitoring object.
Returns
A collection of MonitoringObject objects.
Applies to
GetRelatedMonitoringObjects()
This method will find any MonitoringObject instances that are related to this MonitoringObject by any containment relationship.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects();
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects ();
member this.GetRelatedMonitoringObjects : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects () As ReadOnlyCollection(Of MonitoringObject)
Returns
A collection of MonitoringObject objects.
Applies to
GetRelatedMonitoringObjects(MonitoringObjectCriteria)
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::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::MonitoringObject ^> ^ GetRelatedMonitoringObjects(Microsoft::EnterpriseManagement::Monitoring::MonitoringObjectCriteria ^ criteria);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject> GetRelatedMonitoringObjects (Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria criteria);
member this.GetRelatedMonitoringObjects : Microsoft.EnterpriseManagement.Monitoring.MonitoringObjectCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.MonitoringObject>
Public Function GetRelatedMonitoringObjects (criteria As MonitoringObjectCriteria) As ReadOnlyCollection(Of MonitoringObject)
Parameters
- criteria
- MonitoringObjectCriteria
The criteria to query by.
Returns
A collection of MonitoringObject objects.
Exceptions
criteria is null.