Share via


AgentPendingAction.CreateCustomMonitoringObjects Method

Definition

Caution

Use AgentPendingAction.CreatableEnterpriseManagementObject instead

Create custom monitoring objects from agent pending actions.

public:
 static System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Monitoring::CustomMonitoringObject ^> ^ CreateCustomMonitoringObjects(System::Collections::Generic::IList<Microsoft::EnterpriseManagement::Administration::AgentPendingAction ^> ^ agentPendingActions, Microsoft::EnterpriseManagement::ManagementGroup ^ managementGroup);
[System.Obsolete("Use AgentPendingAction.CreatableEnterpriseManagementObject instead")]
public static System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.CustomMonitoringObject> CreateCustomMonitoringObjects (System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Administration.AgentPendingAction> agentPendingActions, Microsoft.EnterpriseManagement.ManagementGroup managementGroup);
static member CreateCustomMonitoringObjects : System.Collections.Generic.IList<Microsoft.EnterpriseManagement.Administration.AgentPendingAction> * Microsoft.EnterpriseManagement.ManagementGroup -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Monitoring.CustomMonitoringObject>
Public Shared Function CreateCustomMonitoringObjects (agentPendingActions As IList(Of AgentPendingAction), managementGroup As ManagementGroup) As ReadOnlyCollection(Of CustomMonitoringObject)

Parameters

agentPendingActions
IList<AgentPendingAction>

List of agent pending actions.

managementGroup
ManagementGroup

Returns

List of CustomMonitoringObject for each agent computer.

Attributes

Applies to