Freigeben über


AgentTaskResult.GetAgentOperationResult Method

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 monitoringTaskResult As MonitoringTaskResult
Dim returnValue As AgentOperationResult

returnValue = AgentTaskResult.GetAgentOperationResult(monitoringTaskResult)

Syntax

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

Parameters

  • monitoringTaskResult
    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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also

Reference

AgentTaskResult Class
AgentTaskResult Members
Microsoft.EnterpriseManagement.Administration Namespace

Send comments about this topic to Microsoft.