Completed Event
Collapse the table of content
Expand the table of content

ManagementOperationObserver.Completed Event

 

Occurs when an operation has completed.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

member Completed : IEvent<CompletedEventHandler,
    CompletedEventArgs>

The event handler receives an argument of type CompletedEventArgs containing data related to this event. The following CompletedEventArgs properties provide information specific to this event.

Property

Description

Context (inherited from ManagementEventArgs)

Gets the operation context echoed back from the operation that triggered the event.

Status

Gets the completion status of the operation.

StatusObject

Gets or sets additional status information within a WMI object. This may be null.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

The following example demonstrates how to perform an asynchronous instance enumeration. The example uses the ManagementOperationObserver class to handle management information and events asynchronously.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft