Partager via


flush Method (Windows CE 5.0)

Send Feedback

This method flushes the object's internal buffer to its destination IStream/String. Flushing occurs when one of the following three actions occur:

  • There is access to the output property.
  • The endDocument event is called.
  • The flush method is called.
HRESULT flush( );

Parameters

None.

Return Values

  • S_OK
    Returned if no errors are reported.

Remarks

Avoid handling the underlying IStream object during output (for example, direct writing). Keep in mind that a correspondence between Simple API for XML (SAX2) events and output text is not generally specified, though an implementation can provide it. Therefore, when using the flush method, the exact position within the generated document is not generally known. If the flush method interrupts the IMXWriter output, all output that has been processed is put into the underlying IStream/ISequentialStream object.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

See Also

output Property (XML SAX) | IMXWriter:IDispatch

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.