[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

Visual Basic
Dim instance As IPresentationManagement
Dim typeName As String
Dim managementPack As ManagementPack
Dim returnValue As ManagementPackViewType

returnValue = instance.GetViewType(typeName, managementPack)

Syntax

Visual Basic
Function GetViewType ( _
		typeName As String, _
		managementPack As ManagementPack _
) As ManagementPackViewType
C#
ManagementPackViewType GetViewType (
		string typeName,
		ManagementPack managementPack
)
C++
ManagementPackViewType^ GetViewType (
		String^ typeName, 
		ManagementPack^ managementPack
)
J#
ManagementPackViewType GetViewType (
		String typeName, 
		ManagementPack managementPack
)
JScript
function GetViewType (
		typeName : String, 
		managementPack : ManagementPack
) : ManagementPackViewType

Parameters

typeName

Type: String

The view type name.

managementPack

Type: ManagementPack

The management pack that contains the view type.

Return Value

Type: ManagementPackViewType 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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003

See Also