Microsoft XML 2.5 SDK


 

IXMLDOMDocument::put_onreadystatechange Method

[This is preliminary documentation and subject to change.]

Specifies the event handler to be invoked when the readyState property changes.

Visual Basic Syntax

oXMLDOMDocument.onreadystatechange = funcMyEventHandler

C/C++ Syntax

HRESULT put_onreadystatechange(

    VARIANT readystatechangeSink);

Parameters

readystatechangeSink

[in]
Name of the function that should be called when the readystate property value changes.

C/C++ Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

You can call the IXMLDOMDocument object's QueryInterface method to obtain the IConnectionPointContainer interface, which is used in event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONREADYSTATECHANGE.

This member is an extension of the W3C DOM.

C/C++ Example

Check the example for IXMLDOMDocument::onreadystatechange Event to see how to do this with connection points.