suspend Method

This method suspends parsing and returns control to the application with an E_PENDING HRESULT.

HRESULT suspend( );

Parameters

None.

Return Values

The following table shows the return codes for the suspend method based on the state of the reader.

State Return code
Ready E_FAIL. If suspend is called when the reader is not parsing, the reader remains in the ready state.
Parsing S_OK. Suspends the reader.
Suspended E_FAIL. If suspend is called while the reader is suspended, the reader remains suspended.

Remarks

You can only suspend the reader during parsing. The suspend method must be called from within a handler call. Parsing can be restarted later with the resume method.

Requirements

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

See Also

IMXReaderControl Interface

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.