suspend Method
A version of this page is also available for
4/8/2010
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 |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |