IPresentationManagement.GetViews Method

Definition

Gets a list of views.

Overloads

GetViews()

Gets all views.

GetViews(ManagementPackViewCriteria)

Gets a list of views that match the provided criteria.

GetViews(EnterpriseManagementObject, ManagementPackViewCriteria)

Gets a list of views that match the provided criteria and target the provided object.

GetViews(ManagementPackClass, ManagementPackViewCriteria, BaseClassTraversalDepth)

Gets a list of views that match the provided criteria and target the provided class.

GetViews<T>(IEnumerable<T>, ManagementPackViewCriteria)

Gets a list of views that target any object in the provided object list.

GetViews()

Gets all views.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackView ^> ^ GetViews();
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> GetViews ();
abstract member GetViews : unit -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView>
Public Function GetViews () As IList(Of ManagementPackView)

Returns

The list of view objects.

Applies to

GetViews(ManagementPackViewCriteria)

Gets a list of views that match the provided criteria.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackView ^> ^ GetViews(Microsoft::EnterpriseManagement::Configuration::ManagementPackViewCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> GetViews (Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria criteria);
abstract member GetViews : Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView>
Public Function GetViews (criteria As ManagementPackViewCriteria) As IList(Of ManagementPackView)

Parameters

criteria
ManagementPackViewCriteria

The search criteria.

Returns

The list of view objects.

Applies to

GetViews(EnterpriseManagementObject, ManagementPackViewCriteria)

Gets a list of views that match the provided criteria and target the provided object.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackView ^> ^ GetViews(Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject ^ instance, Microsoft::EnterpriseManagement::Configuration::ManagementPackViewCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> GetViews (Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject instance, Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria criteria);
abstract member GetViews : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject * Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView>
Public Function GetViews (instance As EnterpriseManagementObject, criteria As ManagementPackViewCriteria) As IList(Of ManagementPackView)

Parameters

instance
EnterpriseManagementObject

The targeted object.

criteria
ManagementPackViewCriteria

The search criteria.

Returns

The list of view objects.

Applies to

GetViews(ManagementPackClass, ManagementPackViewCriteria, BaseClassTraversalDepth)

Gets a list of views that match the provided criteria and target the provided class.

public:
 System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackView ^> ^ GetViews(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Configuration::ManagementPackViewCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::BaseClassTraversalDepth baseClassTraversalDepth);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> GetViews (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria criteria, Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth baseClassTraversalDepth);
abstract member GetViews : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria * Microsoft.EnterpriseManagement.Configuration.BaseClassTraversalDepth -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView>
Public Function GetViews (managementPackClass As ManagementPackClass, criteria As ManagementPackViewCriteria, baseClassTraversalDepth As BaseClassTraversalDepth) As IList(Of ManagementPackView)

Parameters

managementPackClass
ManagementPackClass

The targeted class.

criteria
ManagementPackViewCriteria

The search criteria.

baseClassTraversalDepth
BaseClassTraversalDepth

One of the enumeration values that indicates if the targeted class’s base class should also be used.

Returns

The list of view objects.

Applies to

GetViews<T>(IEnumerable<T>, ManagementPackViewCriteria)

Gets a list of views that target any object in the provided object list.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Common::EnterpriseManagementObject System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Configuration::ManagementPackView ^> ^ GetViews(System::Collections::Generic::IEnumerable<T> ^ monitoringObjects, Microsoft::EnterpriseManagement::Configuration::ManagementPackViewCriteria ^ criteria);
public System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> GetViews<T> (System.Collections.Generic.IEnumerable<T> monitoringObjects, Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria criteria) where T : Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject;
abstract member GetViews : seq<'T (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)> * Microsoft.EnterpriseManagement.Configuration.ManagementPackViewCriteria -> System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Configuration.ManagementPackView> (requires 'T :> Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject)
Public Function GetViews(Of T As EnterpriseManagementObject) (monitoringObjects As IEnumerable(Of T), criteria As ManagementPackViewCriteria) As IList(Of ManagementPackView)

Type Parameters

T

The type of objects the object list contains.

Of type EnterpriseManagementObject.

Parameters

monitoringObjects
IEnumerable<T>

The list of objects.

criteria
ManagementPackViewCriteria

The search criteria.

Returns

The list of view objects.

Exceptions

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

The server contained invalid data when this method was called.

Applies to