Share via


ManagementGroup.GetMonitoringTask(Guid) Method

Definition

Caution

Please use TaskConfiguration.GetTask()

Gets a task by id.

public:
 Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ GetMonitoringTask(Guid id);
[System.Obsolete("Please use TaskConfiguration.GetTask()")]
public Microsoft.EnterpriseManagement.Runtime.MonitoringTask GetMonitoringTask (Guid id);
member this.GetMonitoringTask : Guid -> Microsoft.EnterpriseManagement.Runtime.MonitoringTask
Public Function GetMonitoringTask (id As Guid) As MonitoringTask

Parameters

id
Guid

The id of the requested task.

Returns

The task.

Attributes

Exceptions

A MonitoringTask with that id was not found.

Applies to