ManagementGroup::EndExecuteMonitoringTask Method (IAsyncResult^)

System Center
 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Ends the execution of a task.

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

public:
[ObsoleteAttribute("Please use TaskRuntime.EndExecuteMonitoringTask()")]
ReadOnlyCollection<MonitoringTaskResult^>^ EndExecuteMonitoringTask(
	IAsyncResult^ asyncResult
)

Parameters

asyncResult
Type: System::IAsyncResult^

TheIAsyncResultresult.

Return Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringTaskResult^>^

Returns aReadOnlyCollection<T>object that contain the results of the task.

For an example of the EndExecuteMonitoringTask method, see How to Asynchronously Run a Management Pack Task.

Return to top
Show: