Initializes a new MonitoringObjectCriteria object. Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim criteria As String
Dim monitoringClass As MonitoringClass

Dim instance As New MonitoringObjectCriteria(criteria, monitoringClass)

Syntax

Visual Basic
Public Sub New ( _
		criteria As String, _
		monitoringClass As MonitoringClass _
)
C#
public MonitoringObjectCriteria (
		string criteria,
		MonitoringClass monitoringClass
)
C++
public:
MonitoringObjectCriteria (
		String^ criteria, 
		MonitoringClass^ monitoringClass
)
J#
public MonitoringObjectCriteria (
		String criteria, 
		MonitoringClass monitoringClass
)
JScript
public function MonitoringObjectCriteria (
		criteria : String, 
		monitoringClass : MonitoringClass
)

Parameters

criteria

The criteria expression used to filter out monitoring object results returned by the GetMonitoringObjects method and the GetRelatedMonitoringObjects method.

monitoringClass

The MonitoringClass object that this criteria corresponds to.

Example

For an example of the MonitoringObjectCriteria constructor, see How to Synchronously Run a Management Pack Task.

Remarks

You can get a list of the property names that can be used in the criteria expression by using the GetValidPropertyNames method. For information about the criteria expression syntax, see Criteria Expression Syntax.


Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also