Share via


suspend Method (Compact 2013)

3/26/2014

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

Syntax

HRESULT suspend( );

Parameters

None.

Return Value

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

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

IMXReaderControl