次の方法で共有


ondataavailable Property (Compact 2013)

3/26/2014

Specifies the event handler for the ondataavailable event.

Syntax

oXMLDOMDocument.ondataavailable = funcMyEventHandler;
HRESULT put_ondataavailable(
  VARIANT ondataavailableSink
);

Parameters

Script

None.

C/C++

  • ondataavailableSink
    [in] Name of the function that should be called when the readyState Property (DOMDocument) value changes to the value INTERACTIVE, indicating that data is available.

Return Value

Script

None.

C/C++

  • S_OK
    Value returned if successful.

Remarks

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 (DOMDocument) 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 Worldwide Web Consortium (W3C) Document Object Model (DOM).

This property is write-only, and applies to the following interface:

DOMDocument.

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties
ondataavailable Event