ManagementGroupAdministration.GetAgentPendingActions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.