MonitoringClass.GetParentMonitoringClasses 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 all the monitoring object classes that are parent classes to this type using the provided relationship type.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^> ^ GetParentMonitoringClasses(Microsoft::EnterpriseManagement::Configuration::DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft::EnterpriseManagement::Configuration::MonitoringRelationshipClass ^ relationshipClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringClass> GetParentMonitoringClasses (Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth derivedClassTraversalDepth, Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass relationshipClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetParentMonitoringClasses : Microsoft.EnterpriseManagement.Configuration.DerivedClassTraversalDepth * Microsoft.EnterpriseManagement.Configuration.MonitoringRelationshipClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringClass>
Public Function GetParentMonitoringClasses (derivedClassTraversalDepth As DerivedClassTraversalDepth, relationshipClass As MonitoringRelationshipClass, traversalDepth As TraversalDepth) As ReadOnlyCollection(Of MonitoringClass)
Parameters
- derivedClassTraversalDepth
- DerivedClassTraversalDepth
Indicates whether or not to include this classes derived classes as targets for the RelationshipType.
- relationshipClass
- MonitoringRelationshipClass
The relationship class to retrieve related monitoring object classes by. The type and any relationship classes derived from it will be used.
- traversalDepth
- TraversalDepth
Whether to recurse up the relationship hierarchy and include classes that are parents to classes that are parents to this type and so on.
Returns
The MonitoringClasses related to this type requested.