Creates custom monitoring objects from the agent pending actions. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim agentPendingActions As IList(Of AgentPendingAction)
Dim managementGroup As ManagementGroup
Dim returnValue As ReadOnlyCollection(Of CustomMonitoringObject)

returnValue = AgentPendingAction.CreateCustomMonitoringObjects(agentPendingActions, managementGroup)

Syntax

Visual Basic
Public Shared Function CreateCustomMonitoringObjects ( _
		agentPendingActions As IList(Of AgentPendingAction), _
		managementGroup As ManagementGroup _
) As ReadOnlyCollection(Of CustomMonitoringObject)
C#
public static ReadOnlyCollection<CustomMonitoringObject> CreateCustomMonitoringObjects (
		IList<AgentPendingAction> agentPendingActions,
		ManagementGroup managementGroup
)
C++
public:
static ReadOnlyCollection<CustomMonitoringObject^>^ CreateCustomMonitoringObjects (
		IList<AgentPendingAction^>^ agentPendingActions, 
		ManagementGroup^ managementGroup
)
J#
public static ReadOnlyCollection<CustomMonitoringObject> CreateCustomMonitoringObjects (
		IList<AgentPendingAction> agentPendingActions, 
		ManagementGroup managementGroup
)
JScript
public static function CreateCustomMonitoringObjects (
		agentPendingActions : IList<AgentPendingAction>, 
		managementGroup : ManagementGroup
) : ReadOnlyCollection<CustomMonitoringObject>

Parameters

agentPendingActions

The list of agent pending actions from which to create the custom monitoring objects.

managementGroup

The management group that contains the custom monitoring objects.

Return Value

Returns a collection of CustomMonitoringObject 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