Freigeben über


ManagementGroup.EndExecuteMonitoringTask Method (IAsyncResult)

 

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)

Syntax

[ObsoleteAttribute("Please use TaskRuntime.EndExecuteMonitoringTask()")]
public ReadOnlyCollection<MonitoringTaskResult> EndExecuteMonitoringTask(
    IAsyncResult asyncResult
)
public:
[ObsoleteAttribute("Please use TaskRuntime.EndExecuteMonitoringTask()")]
ReadOnlyCollection<MonitoringTaskResult^>^ EndExecuteMonitoringTask(
    IAsyncResult^ asyncResult
)
[<ObsoleteAttribute("Please use TaskRuntime.EndExecuteMonitoringTask()")>]
member EndExecuteMonitoringTask : 
        asyncResult:IAsyncResult -> ReadOnlyCollection<MonitoringTaskResult>
<ObsoleteAttribute("Please use TaskRuntime.EndExecuteMonitoringTask()")>
Public Function EndExecuteMonitoringTask (
    asyncResult As IAsyncResult
) As ReadOnlyCollection(Of MonitoringTaskResult)

Parameters

Return Value

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

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

Examples

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

See Also

ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top