Retrieves the monitoring view objects that target this monitoring class, optionally including the monitoring view objects that target the base classes of this class. Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As MonitoringClass
Dim baseClassTraversalDepth As BaseClassTraversalDepth
Dim returnValue As ReadOnlyCollection(Of MonitoringView)

returnValue = instance.GetMonitoringViews(baseClassTraversalDepth)

Syntax

Visual Basic
Public Function GetMonitoringViews ( _
		baseClassTraversalDepth As BaseClassTraversalDepth _
) As ReadOnlyCollection(Of MonitoringView)
C#
public ReadOnlyCollection<MonitoringView> GetMonitoringViews (
		BaseClassTraversalDepth baseClassTraversalDepth
)
C++
public:
ReadOnlyCollection<MonitoringView^>^ GetMonitoringViews (
		BaseClassTraversalDepth baseClassTraversalDepth
)
J#
public ReadOnlyCollection<MonitoringView> GetMonitoringViews (
		BaseClassTraversalDepth baseClassTraversalDepth
)
JScript
public function GetMonitoringViews (
		baseClassTraversalDepth : BaseClassTraversalDepth
) : ReadOnlyCollection<MonitoringView>

Parameters

baseClassTraversalDepth

Determines whether to also return monitoring view objects that target the base classes of this class. A value of None does not include base classes. A value of Recursive includes base classes.

Return Value

A read-only collection of MonitoringView objects.

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,Windows Vista,Windows XP

See Also