Partager via


IPresentationManagement.GetViewType Method (String, ManagementPack)

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

Gets a view type, by name, from a management pack.

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

Usage

'Usage
Dim instance As IPresentationManagement
Dim typeName As String
Dim managementPack As ManagementPack
Dim returnValue As ManagementPackViewType

returnValue = instance.GetViewType(typeName, managementPack)

Syntax

'Declaration
Function GetViewType ( _
    typeName As String, _
    managementPack As ManagementPack _
) As ManagementPackViewType
ManagementPackViewType GetViewType (
    string typeName,
    ManagementPack managementPack
)
ManagementPackViewType^ GetViewType (
    String^ typeName, 
    ManagementPack^ managementPack
)
ManagementPackViewType GetViewType (
    String typeName, 
    ManagementPack managementPack
)
function GetViewType (
    typeName : String, 
    managementPack : ManagementPack
) : ManagementPackViewType

Parameters

  • typeName
    The view type name.
  • managementPack
    The management pack that contains the view type.

Return Value

The view type.

Exceptions

Exception type Condition
ObjectNotFoundException

The view type that is identified by the typeName parameter does not exist.

ArgumentNullException

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

ArgumentOutOfRangeException

The typeName parameter does not contain any items.

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

IPresentationManagement Interface
IPresentationManagement Members
Microsoft.EnterpriseManagement Namespace