MonitoringClass.GetMonitoringRules 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 monitoring rule objects that target this monitoring class.
Overloads
GetMonitoringRules() |
Obsolete.
Gets all the rules targeted toward this class. |
GetMonitoringRules(BaseClassTraversalDepth) |
Obsolete.
Gets all the rules targeted toward this class. |
GetMonitoringRules(ManagementPackRuleCriteria) |
Obsolete.
Gets all the rules targeted toward this class. |
GetMonitoringRules(ManagementPackRuleCriteria, BaseClassTraversalDepth) |
Obsolete.
Gets all the rules targeted toward this class. |
GetMonitoringRules()
Caution
Use ManagementGroup.Monitoring.GetRules
Gets all the rules targeted toward this class.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules();
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule> GetMonitoringRules ();
member this.GetMonitoringRules : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule>
Public Function GetMonitoringRules () As ReadOnlyCollection(Of MonitoringRule)
Returns
A collection of Rule objects.
- Attributes
Exceptions
There was invalid data in the database corresponding to this method call.
Applies to
GetMonitoringRules(BaseClassTraversalDepth)
Caution
Use ManagementGroup.Monitoring.GetRules
Gets all the rules targeted toward this class.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules(Microsoft::EnterpriseManagement::Configuration::BaseClassTraversalDepth baseClassTraversalDepth);
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule> GetMonitoringRules (Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth baseClassTraversalDepth);
member this.GetMonitoringRules : Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule>
Public Function GetMonitoringRules (baseClassTraversalDepth As BaseClassTraversalDepth) As ReadOnlyCollection(Of MonitoringRule)
Parameters
- baseClassTraversalDepth
- BaseClassTraversalDepth
Indicates whether or not to include this classes base classes as targets for the Rule.
Returns
A collection of Rule objects.
- Attributes
Exceptions
There was invalid data in the database corresponding to this method call.
Applies to
GetMonitoringRules(ManagementPackRuleCriteria)
Caution
Use ManagementGroup.Monitoring.GetRules
Gets all the rules targeted toward this class.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules(Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria);
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule> GetMonitoringRules (Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria);
member this.GetMonitoringRules : Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule>
Public Function GetMonitoringRules (criteria As ManagementPackRuleCriteria) As ReadOnlyCollection(Of MonitoringRule)
Parameters
- criteria
- ManagementPackRuleCriteria
The criteria to apply to the rules.
Returns
A collection of Rule objects.
- Attributes
Exceptions
There was invalid data in the database corresponding to this method call.
Applies to
GetMonitoringRules(ManagementPackRuleCriteria, BaseClassTraversalDepth)
Caution
Use ManagementGroup.Monitoring.GetRules
Gets all the rules targeted toward this class.
public:
System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules(Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::BaseClassTraversalDepth baseClassTraversalDepth);
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule> GetMonitoringRules (Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria, Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth baseClassTraversalDepth);
member this.GetMonitoringRules : Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria * Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Configuration.MonitoringRule>
Public Function GetMonitoringRules (criteria As ManagementPackRuleCriteria, baseClassTraversalDepth As BaseClassTraversalDepth) As ReadOnlyCollection(Of MonitoringRule)
Parameters
- criteria
- ManagementPackRuleCriteria
The criteria to apply to the rules.
- baseClassTraversalDepth
- BaseClassTraversalDepth
Indicates whether or not to include this classes base classes as targets for the Rule.
Returns
A collection of Rule objects.
- Attributes
Exceptions
There was invalid data in the database corresponding to this method call.