Partager via


System Center

Gets a reader for a specific management pack class type.

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

Usage

'Usage
Dim instance As IEntityObjectsManagement
Dim managementPackClass As ManagementPackClass
Dim objectQueryOptions As ObjectQueryOptions
Dim returnValue As IObjectReader(Of T)

returnValue = instance.GetObjectReader(managementPackClass, objectQueryOptions)

Syntax

'Declaration
Function GetObjectReader(Of T As EnterpriseManagementObject) ( _
    managementPackClass As ManagementPackClass, _
    objectQueryOptions As ObjectQueryOptions _
) As IObjectReader(Of T)
IObjectReader<T> GetObjectReader<T> (
    ManagementPackClass managementPackClass,
    ObjectQueryOptions objectQueryOptions
) where T : EnterpriseManagementObject
generic<typename T> where T : EnterpriseManagementObject
IObjectReader<T>^ GetObjectReader (
    ManagementPackClass^ managementPackClass, 
    ObjectQueryOptions^ objectQueryOptions
)

GenericParameters

Parameters

  • managementPackClass
    Type: ManagementPackClass

    The management pack class to restrict the query by.

Return Value

Type: IObjectReader

The object reader.

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

IEntityObjectsManagement Interface
IEntityObjectsManagement Members
Microsoft.EnterpriseManagement Namespace