AgentTaskResult.GetAgentOperationResult Method

Updated: April 16, 2012

Gets the result of a specific task that affected an agent. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim taskResult As TaskResult Dim returnValue As AgentOperationResult returnValue = AgentTaskResult.GetAgentOperationResult(taskResult)Public Shared Function GetAgentOperationResult ( _ taskResult As TaskResult _ ) As AgentOperationResultpublic static AgentOperationResult GetAgentOperationResult ( TaskResult taskResult )public: static AgentOperationResult^ GetAgentOperationResult ( TaskResult^ taskResult )public static AgentOperationResult GetAgentOperationResult ( TaskResult taskResult )public static function GetAgentOperationResult ( taskResult : TaskResult ) : AgentOperationResultParameterstaskResultThe monitoring result returned by the task that affected the agent.Return ValueReturns a AgentOperationResult that represents the result of a completed task that affected an agent on a managed computer.

The result includes the name of the agent affected by the task, the operation that was performed, a description of the task, and the task's error code.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms