ManagementGroup.GetMonitoringTask(Guid) 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.
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.