Partager via


ondataavailable Property (Windows Embedded CE 6.0)

1/6/2010

Specifies the event handler for the ondataavailable event.

Script Syntax

oXMLDOMDocument.ondataavailable = funcMyEventHandler;

Remarks

Ee502044.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502044.collapse(en-US,WinEmbedded.60).gifScript Return Value

None.

Ee502044.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT put_ondataavailable(
  VARIANT ondataavailableSink
);

Remarks

Ee502044.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • 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.

Ee502044.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.

Ee502044.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General 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.

See Also

Reference

XML DOM Properties

Concepts

ondataavailable Event

Other Resources

READYSTATE