WsMoveReader function (webservices.h)
Moves the current position of the reader as specified by the moveTo parameter.
This function can only be used on a reader that is set to an XmlBuffer.
Syntax
HRESULT WsMoveReader(
[in] WS_XML_READER *reader,
[in] WS_MOVE_TO moveTo,
BOOL *found,
[in, optional] WS_ERROR *error
);
Parameters
[in] reader
A pointer to the XML Reader object with the position to move. The pointer must reference a valid WS_XML_READER object and the referenced Reader value may not be NULL.
[in] moveTo
This enumerator specifies direction or next position of the Reader relative to the current position.
found
Indicates success or failure of the specified move.
[in, optional] error
A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
One or more arguments are invalid. |
|
The input data was not in the expected format or did not have the expected value. |
|
The operation is not allowed due to the current state of the object. |
Remarks
If the found parameter is not NULL, then it will indicate there whether or not it could move to the requested node and return NOERROR.
If the found parameter is NULL, and the requested node is not found, it will return WS_E_INVALID_FORMAT. (See Windows Web Services Return Values.)
This function cannot be used while canonicalizing. If WsStartReaderCanonicalization has been called, then it will return WS_E_INVALID_OPERATION.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | webservices.h |
Library | WebServices.lib |
DLL | WebServices.dll |