ManagementGroup.EndExecuteMonitoringTask(IAsyncResult) 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 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.