Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WsSetWriterPosition function

Sets the current position of the writer. The position must have been obtained by a call to WsGetReaderPosition or WsGetWriterPosition.

Syntax


HRESULT WINAPI  WsSetWriterPosition(
  _In_     WS_XML_WRITER*              writer,
  _In_     const WS_XML_NODE_POSITION* nodePosition,
  _In_opt_ WS_ERROR*                   error
);

Parameters

writer [in]

The writer for which the current position will be set.

nodePosition [in]

The position to set the writer to.

error [in, optional]

Specifies where additional error information should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
E_INVALIDARG

One or more arguments are invalid.

WS_E_INVALID_OPERATION

The operation is not allowed due to the current state of the object.

 

Remarks

This can only be used on a writer that is set to an WS_XML_BUFFER.

When writing to a buffer, the position represents the xml node before which new data will be placed.

See WS_XML_NODE_POSITION for more information on using positions.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

Show:
© 2016 Microsoft