ManagementGroup.GetRelatedPartialMonitoringObjects 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.
Retrieves the partial monitoring object instances that are related to the specified monitoring objects provided by the given relationship, or by any relationship that derives from it.
Overloads
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringClass) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects. provided by Membership, and of the given type or any derived types. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects provided by the given relationship, or any relationship that derives from it. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects. provided by Membership, and of the given type or any derived types. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringClass, TraversalDepth) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects provided by Membership, and of the given type or any derived types. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass, TraversalDepth) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects provided by the given relationship. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>, TraversalDepth) |
Obsolete.
This method will find any PartialMonitoringObject instances that are related to the monitoring objects provided by Membership, and of the given type or any derived types. |
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringClass)
Caution
Please use EntityObjects.GetRelatedObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects. 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(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.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClass As MonitoringClass) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
Type Parameters
- T
Must be of type PartialMonitoringObject.
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
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass)
Caution
Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass);
[System.Obsolete("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), relationshipClass As MonitoringRelationshipClass) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
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
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>)
Caution
Please use EntityObjects.GetRelatedObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects. 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(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.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<T> (System.Collections.Generic.ICollection<T> monitoringObjects, System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> monitoringClasses) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase;
member this.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClasses As IList(Of MonitoringClass)) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
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
Remarks
When you consider whether to use the GetRelatedMonitoringObjectsmethod or theGetRelatedPartialMonitoringObjectsmethod, refer to the information in Monitoring Object and Partial Monitoring Object Comparison
Applies to
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringClass, TraversalDepth)
Caution
Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<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.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
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))
Type Parameters
- T
Must be of type PartialMonitoringObject.
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
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, MonitoringRelationshipClass, TraversalDepth)
Caution
Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(System::Collections::Generic::ICollection<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<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.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), relationshipClass As MonitoringRelationshipClass, traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
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..
- 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
GetRelatedPartialMonitoringObjects<T>(ICollection<T>, IList<MonitoringClass>, TraversalDepth)
Caution
Please use EntityObjects.GetRelatedPartialMonitoringObjects<T>()
This method will find any PartialMonitoringObject instances that are related to the monitoring objects 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::PartialMonitoringObject ^> ^> ^ GetRelatedPartialMonitoringObjects(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.GetRelatedPartialMonitoringObjects<T>()")]
public System.Collections.Generic.Dictionary<T,System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject>> GetRelatedPartialMonitoringObjects<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.GetRelatedPartialMonitoringObjects : 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.PartialMonitoringObject> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)> (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObjectBase)
Public Function GetRelatedPartialMonitoringObjects(Of T As PartialMonitoringObjectBase) (monitoringObjects As ICollection(Of T), monitoringClasses As IList(Of MonitoringClass), traversalDepth As TraversalDepth) As Dictionary(Of T, ReadOnlyCollection(Of PartialMonitoringObject))
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 theGetRelatedMonitoringObjectsmethod or the GetRelatedPartialMonitoringObjectsmethod, refer to the information inMonitoring Object and Partial Monitoring Object Comparison