IPresentationManagement.GetViews Method (IEnumerable, ManagementPackViewCriteria)
[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
'Usage
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
'Declaration
Function GetViews(Of T As EnterpriseManagementObject) ( _
monitoringObjects As IEnumerable(Of T), _
criteria As ManagementPackViewCriteria _
) As IList(Of ManagementPackView)
IList<ManagementPackView> GetViews<T> (
IEnumerable<T> monitoringObjects,
ManagementPackViewCriteria criteria
) where T : EnterpriseManagementObject
generic<typename T> where T : EnterpriseManagementObject
IList<ManagementPackView^>^ GetViews (
IEnumerable<T>^ monitoringObjects,
ManagementPackViewCriteria^ criteria
)
GenericParameters
T
The type of objects the object list contains.Of type EnterpriseManagementObject.
Parameters
- monitoringObjects
The list of objects.
- criteria
The search criteria.
Return Value
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 Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
IPresentationManagement Interface
IPresentationManagement Members
Microsoft.EnterpriseManagement Namespace