Share via


EnterpriseManagementObjectCriteria Constructor (String, ManagementPackClass)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new instance of the EnterpriseManagementObjectCriteria class with a non-XML-based criteria string and the management pack entity to search.

Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim criteria As String
Dim managementPackClass As ManagementPackClass

Dim instance As New EnterpriseManagementObjectCriteria(criteria, managementPackClass)

Syntax

'Declaration
Public Sub New ( _
    criteria As String, _
    managementPackClass As ManagementPackClass _
)
public EnterpriseManagementObjectCriteria (
    string criteria,
    ManagementPackClass managementPackClass
)
public:
EnterpriseManagementObjectCriteria (
    String^ criteria, 
    ManagementPackClass^ managementPackClass
)
public EnterpriseManagementObjectCriteria (
    String criteria, 
    ManagementPackClass managementPackClass
)
public function EnterpriseManagementObjectCriteria (
    criteria : String, 
    managementPackClass : ManagementPackClass
)

Parameters

  • criteria
    The criteria to search for.
  • managementPackClass
    The management pack entity being queried.

Exceptions

Exception type Condition
ArgumentNullException

The managementPackClass parameter is a null reference (Nothing in Visual Basic).

InvalidCriteriaException

The criteria is XML. A different constructor should be used when creating the class instance.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

EnterpriseManagementObjectCriteria Class
EnterpriseManagementObjectCriteria Members
Microsoft.EnterpriseManagement.Common Namespace