Compartilhar via


ObjectQueryOptions.AddPropertyToRetrieve Method (ManagementPackClass, ManagementPackProperty)

Adds the property to the query options for the given class.

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

Usage

'Usage
Dim instance As ObjectQueryOptions
Dim managementPackClass As ManagementPackClass
Dim property As ManagementPackProperty

instance.AddPropertyToRetrieve(managementPackClass, property)

Syntax

'Declaration
Public Sub AddPropertyToRetrieve ( _
    managementPackClass As ManagementPackClass, _
    property As ManagementPackProperty _
)
public void AddPropertyToRetrieve (
    ManagementPackClass managementPackClass,
    ManagementPackProperty property
)
public:
void AddPropertyToRetrieve (
    ManagementPackClass^ managementPackClass, 
    ManagementPackProperty^ property
)
public void AddPropertyToRetrieve (
    ManagementPackClass managementPackClass, 
    ManagementPackProperty property
)
public function AddPropertyToRetrieve (
    managementPackClass : ManagementPackClass, 
    property : ManagementPackProperty
)

Parameters

  • managementPackClass
    The given class.
  • property
    The property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ObjectQueryOptions Class
ObjectQueryOptions Members
Microsoft.EnterpriseManagement.Common Namespace