AgentTaskResult.GetAgentOperationResult(TaskResult) 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.
Get the agent operation output for a given MonitoringTaskResult.
public:
static Microsoft::EnterpriseManagement::Administration::AgentOperationResult ^ GetAgentOperationResult(Microsoft::EnterpriseManagement::Runtime::TaskResult ^ taskResult);
public static Microsoft.EnterpriseManagement.Administration.AgentOperationResult GetAgentOperationResult (Microsoft.EnterpriseManagement.Runtime.TaskResult taskResult);
static member GetAgentOperationResult : Microsoft.EnterpriseManagement.Runtime.TaskResult -> Microsoft.EnterpriseManagement.Administration.AgentOperationResult
Public Shared Function GetAgentOperationResult (taskResult As TaskResult) As AgentOperationResult
Parameters
- taskResult
- TaskResult
The monitoring result returned by the task that affected the agent.
Returns
AgentOperationResult
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.