[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]Gets a list of views that target any object in the provided object list. Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

Visual Basic
Dim instance As IPresentationManagement
Dim monitoringObjects As IEnumerable(Of T)
Dim criteria As ManagementPackViewCriteria
Dim returnValue As IList(Of ManagementPackView)

returnValue = instance.GetViews(monitoringObjects, criteria)

Syntax

Visual Basic
Function GetViews(Of T As EnterpriseManagementObject) ( _
		monitoringObjects As IEnumerable(Of T), _
		criteria As ManagementPackViewCriteria _
) As IList(Of ManagementPackView)
C#
IList<ManagementPackView> GetViews<T> (
		IEnumerable<T> monitoringObjects,
		ManagementPackViewCriteria criteria
) where T : EnterpriseManagementObject
C++
generic<typename T> where T : EnterpriseManagementObject
IList<ManagementPackView^>^ GetViews (
		IEnumerable<T>^ monitoringObjects, 
		ManagementPackViewCriteria^ criteria
)
J#

JScript

GenericParameters

T

The type of objects the object list contains.

Of type EnterpriseManagementObject.

Parameters

monitoringObjects

Type: IEnumerable{

The list of objects.

criteria

Type: ManagementPackViewCriteria

The search criteria.

Return Value

Type: IList The list of view objects.

Exceptions

Exception type Condition
ArgumentNullException

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

InvalidDatabaseDataException

The server contained invalid data when this method was called.

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