Share via


ManagementGroup.EndExecuteMonitoringTask(IAsyncResult) Method

Definition

Caution

Please use TaskRuntime.EndExecuteMonitoringTask()

Finishes task execution.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::EnterpriseManagement::Runtime::MonitoringTaskResult ^> ^ EndExecuteMonitoringTask(IAsyncResult ^ asyncResult);
[System.Obsolete("Please use TaskRuntime.EndExecuteMonitoringTask()")]
public System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTaskResult> EndExecuteMonitoringTask (IAsyncResult asyncResult);
member this.EndExecuteMonitoringTask : IAsyncResult -> System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.EnterpriseManagement.Runtime.MonitoringTaskResult>
Public Function EndExecuteMonitoringTask (asyncResult As IAsyncResult) As ReadOnlyCollection(Of MonitoringTaskResult)

Parameters

asyncResult
IAsyncResult

The IAsyncResult.

Returns

The task results.

Attributes

Exceptions

asyncResult is null

asyncResult was not from this instance of ManagementGroup or from an incompatible Begin method or was already processed

There was an error processing results on the server.

Examples

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

Applies to