Share via


IMonitoringConfigurationManagement.GetRules Method

Definition

Retrieves rules.

Overloads

GetRules()

Retrieves all the rules in this management group targeted to any of these instances.

GetRules(ManagementPackRuleCriteria)

Retrieves rules based on the criteria

GetRules(EnterpriseManagementObject, ManagementPackRuleCriteria)

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

GetRules(ManagementPackClass, ManagementPackRuleCriteria, BaseClassTraversalDepth)

Retrieves all the rules targeted toward this class.

GetRules<T>(IEnumerable<T>, ManagementPackRuleCriteria)

Retrieves rules for the targeted instances based on the criteria

GetRules()

Retrieves all the rules in this management group targeted to any of these instances.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackRule ^> ^ GetRules();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> GetRules ();
abstract member GetRules : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule>
Public Function GetRules () As IList(Of ManagementPackRule)

Returns

Returns IList<T>.

All the rules in this management group targeted to any of these instances.

Applies to

GetRules(ManagementPackRuleCriteria)

Retrieves rules based on the criteria

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackRule ^> ^ GetRules(Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> GetRules (Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria);
abstract member GetRules : Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule>
Public Function GetRules (criteria As ManagementPackRuleCriteria) As IList(Of ManagementPackRule)

Parameters

criteria
ManagementPackRuleCriteria

The search criteria.

Returns

Returns IList<T>.

The rules based on the criteria

Applies to

GetRules(EnterpriseManagementObject, ManagementPackRuleCriteria)

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

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackRule ^> ^ GetRules(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> GetRules (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria);
abstract member GetRules : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule>
Public Function GetRules (instance As EnterpriseManagementObject, criteria As ManagementPackRuleCriteria) As IList(Of ManagementPackRule)

Parameters

instance
EnterpriseManagementObject

The specified instance for the monitoring object.

criteria
ManagementPackRuleCriteria

The search criteria.

Returns

Returns IList<T>.

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

Applies to

GetRules(ManagementPackClass, ManagementPackRuleCriteria, BaseClassTraversalDepth)

Retrieves all the rules targeted toward this class.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackRule ^> ^ GetRules(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::BaseClassTraversalDepth baseClassTraversalDepth);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> GetRules (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria, Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth baseClassTraversalDepth);
abstract member GetRules : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria * Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule>
Public Function GetRules (managementPackClass As ManagementPackClass, criteria As ManagementPackRuleCriteria, baseClassTraversalDepth As BaseClassTraversalDepth) As IList(Of ManagementPackRule)

Parameters

managementPackClass
ManagementPackClass

The target class.

criteria
ManagementPackRuleCriteria

The search criteria.

baseClassTraversalDepth
BaseClassTraversalDepth

Indicates whether or not to include this class’s base classes as targets for the diagnostic.

Returns

Returns IList<T>.

All the rules targeted toward this class.

Applies to

GetRules<T>(IEnumerable<T>, ManagementPackRuleCriteria)

Retrieves rules for the targeted instances based on the criteria

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackRule ^> ^ GetRules(System::Collections::Generic::IEnumerable<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::ManagementPackRuleCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> GetRules<T> (System.Collections.Generic.IEnumerable<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria criteria) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member GetRules : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackRuleCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackRule> (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function GetRules(Of T As EnterpriseManagementObject) (monitoringObjects As IEnumerable(Of T), criteria As ManagementPackRuleCriteria) As IList(Of ManagementPackRule)

Type Parameters

T

Parameters

monitoringObjects
IEnumerable<T>

The targeted instances.

criteria
ManagementPackRuleCriteria

The search criteria.

Returns

Returns IList<T>.

The rules for the targeted instances based on the criteria

Applies to