Share via


MonitoringObjectCriteria Constructor

Initializes a new MonitoringObjectCriteria object.

Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

'Usage
Dim criteria As String
Dim monitoringClass As MonitoringClass

Dim instance As New MonitoringObjectCriteria(criteria, monitoringClass)

Syntax

'Declaration
Public Sub New ( _
    criteria As String, _
    monitoringClass As MonitoringClass _
)
public MonitoringObjectCriteria (
    string criteria,
    MonitoringClass monitoringClass
)
public:
MonitoringObjectCriteria (
    String^ criteria, 
    MonitoringClass^ monitoringClass
)
public MonitoringObjectCriteria (
    String criteria, 
    MonitoringClass monitoringClass
)
public function MonitoringObjectCriteria (
    criteria : String, 
    monitoringClass : MonitoringClass
)

Parameters

  • 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

Reference

MonitoringObjectCriteria Class
MonitoringObjectCriteria Members
Microsoft.EnterpriseManagement.Monitoring Namespace

Send comments about this topic to Microsoft.