MonitoringObjectCriteria Constructor (String, ManagementPackClass)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
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 managementPackClass As ManagementPackClass
Dim instance As New MonitoringObjectCriteria(criteria, managementPackClass)
Syntax
'Declaration
Public Sub New ( _
criteria As String, _
managementPackClass As ManagementPackClass _
)
public MonitoringObjectCriteria (
string criteria,
ManagementPackClass managementPackClass
)
public:
MonitoringObjectCriteria (
String^ criteria,
ManagementPackClass^ managementPackClass
)
public MonitoringObjectCriteria (
String criteria,
ManagementPackClass managementPackClass
)
public function MonitoringObjectCriteria (
criteria : String,
managementPackClass : ManagementPackClass
)
Parameters
- criteria
The criteria expression used to filter out monitoring object results returned by the GetMonitoringObjects method and the GetRelatedMonitoringObjects method.
- managementPackClass
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 Vista, Windows Server 2003, and
Target Platforms
See Also
Reference
MonitoringObjectCriteria Class
MonitoringObjectCriteria Members
Microsoft.EnterpriseManagement.Monitoring Namespace