ManagementGroupAdministration.GetAgentPendingActions Method

Definition

Return all agent pending actions.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Administration::AgentPendingAction ^> ^ GetAgentPendingActions();
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Administration.AgentPendingAction> GetAgentPendingActions ();
member this.GetAgentPendingActions : unit -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Administration.AgentPendingAction>
Public Function GetAgentPendingActions () As ReadOnlyCollection(Of AgentPendingAction)

Returns

ReadOnlyCollection<AgentPendingAction>

Read only collection of pending actions.

Examples

The following example shows how to display a list of pending tasks for all servers in a Management Group. In this example, mg is a ManagementGroup instance.

Remarks

A pending action is a task that is queued or awaiting administrator approval. Examples of pending actions from the AgentPendingActionType class include UpdateAgent, which denotes that an agent is waiting to update to a later software version, and RepairAgent, which denotes that an agent is waiting to be repaired.

Applies to

See also