Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ondataavailable Property

Specifies the event handler for the ondataavailable event.

oXMLDOMDocument.ondataavailable = funcMyEventHandler;

objXMLDOMDocument.ondataavailable = value

Private WithEvents XmlDoc As Msxml2.DOMDocument
Private Sub XmlDoc_ondataavailable()

HRESULT put_ondataavailable(
    VARIANT ondataavailableSink);



Name of the function that should be called when the readyState property value changes to the value INTERACTIVE, indicating that data is available.

C/C++ Return Values


Value returned if successful.

The property is write-only. When handling asynchronous data, it is useful to be able to start processing in parallel with the download as soon as data becomes available. The ondataavailable event fires each time a new chunk of data arrives. The readyState property defines several states that specify the current status of the asynchronous download.

You can call QueryInterface method of the DOMDocument to obtain IConnectionPointContainer, which is used in event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONDATAAVAILABLE.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

© 2015 Microsoft