ManagementOperationObserver::ObjectReady Event

 

Occurs when a new object is available.

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

public:
event ObjectReadyEventHandler^ ObjectReady {
	void add(ObjectReadyEventHandler^ value);
	void remove(ObjectReadyEventHandler^ value);
}

The event handler receives an argument of type ObjectReadyEventArgs containing data related to this event. The following ObjectReadyEventArgs 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.

NewObject

Gets the newly-returned object.

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: