IPresentationManagement.GetViewType Method

Definition

Gets a view type.

Overloads

GetViewType(Guid)

Gets a view type by using an identifier.

GetViewType(String, ManagementPack)

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

GetViewType(Guid)

Gets a view type by using an identifier.

public:
 Microsoft::EnterpriseManagement::Configuration::ManagementPackViewType ^ GetViewType(Guid id);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackViewType GetViewType (Guid id);
abstract member GetViewType : Guid -> Microsoft.EnterpriseManagement.Configuration.ManagementPackViewType
Public Function GetViewType (id As Guid) As ManagementPackViewType

Parameters

id
Guid

The view type identifier.

Returns

The view type object.

Exceptions

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

Applies to

GetViewType(String, ManagementPack)

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

public:
 Microsoft::EnterpriseManagement::Configuration::ManagementPackViewType ^ GetViewType(System::String ^ typeName, Microsoft::EnterpriseManagement::Configuration::ManagementPack ^ managementPack);
public Microsoft.EnterpriseManagement.Configuration.ManagementPackViewType GetViewType (string typeName, Microsoft.EnterpriseManagement.Configuration.ManagementPack managementPack);
abstract member GetViewType : string * Microsoft.EnterpriseManagement.Configuration.ManagementPack -> Microsoft.EnterpriseManagement.Configuration.ManagementPackViewType
Public Function GetViewType (typeName As String, managementPack As ManagementPack) As ManagementPackViewType

Parameters

typeName
String

The view type name.

managementPack
ManagementPack

The management pack that contains the view type.

Returns

The view type.

Exceptions

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

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

The typeName parameter does not contain any items.

Applies to