PartialMonitoringObject.GetMonitoringRules Method

Definition

Gets all the rules that are targeted toward this monitoring object, based on all the types of the entity and the base types.

Overloads

GetMonitoringRules(ManagementPackRuleCriteria)
Obsolete.

Gets all the rules targeted toward this monitoring object, based on all the types of the entity and their base types.

GetMonitoringRules()
Obsolete.

Gets all the rules targeted toward this monitoring object, based on all the types of the entity and their base types.

GetMonitoringRules(ManagementPackRuleCriteria)

Caution

Use ManagementGroup.Monitoring.GetRules methods that take this object

Gets all the rules targeted toward this monitoring object, based on all the types of the entity and their base types.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules(Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria);
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules methods that take this object")]
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 of rules to retrieve.

Returns

A collection of rule objects.

Attributes

Applies to

GetMonitoringRules()

Caution

Use ManagementGroup.Monitoring.GetRules methods that take this object

Gets all the rules targeted toward this monitoring object, based on all the types of the entity and their base types.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^> ^ GetMonitoringRules();
[System.Obsolete("Use ManagementGroup.Monitoring.GetRules methods that take this object")]
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

Applies to