Share via


AgentTaskResult.GetAgentOperationResult Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets the result of a specific task that affected an agent.

Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim taskResult As TaskResult
Dim returnValue As AgentOperationResult

returnValue = AgentTaskResult.GetAgentOperationResult(taskResult)

Syntax

'Declaration
Public Shared Function GetAgentOperationResult ( _
    taskResult As TaskResult _
) As AgentOperationResult
public static AgentOperationResult GetAgentOperationResult (
    TaskResult taskResult
)
public:
static AgentOperationResult^ GetAgentOperationResult (
    TaskResult^ taskResult
)
public static AgentOperationResult GetAgentOperationResult (
    TaskResult taskResult
)
public static function GetAgentOperationResult (
    taskResult : TaskResult
) : AgentOperationResult

Parameters

  • taskResult
    The monitoring result returned by the task that affected the agent.

Return Value

Returns a AgentOperationResult that represents the result of a completed task that affected an agent on a managed computer.

Remarks

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.

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 Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

AgentTaskResult Class
AgentTaskResult Members
Microsoft.EnterpriseManagement.Administration Namespace