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.

WsReadStartAttribute function

Moves the Reader to the specified attribute so that the content may be read using WsReadValue, WsReadChars, or WsReadBytes. If the reader is not positioned on a start element then it returns a WS_E_INVALID_FORMAT exception. (See Windows Web Services Return Values.)

Note  Attributes read do not appear in any particular order. WsFindAttribute can be used to locate the index of a particular attribute.
 

Syntax


HRESULT WINAPI  WsReadStartAttribute(
  _In_     WS_XML_READER* reader,
  _In_     ULONG          attributeIndex,
  _In_opt_ WS_ERROR*      error
);

Parameters

reader [in]

A pointer to the XML Reader object used to read the Start attribute.

attributeIndex [in]

The index of the attribute to read.

error [in, optional]

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 codeDescription
WS_E_INVALID_FORMAT

The input data was not in the expected format or did not have the expected value.

 

Remarks

The WsReadNode function returns EOF when advanced within an attribute. The WsReadEndAttribute function can be used to return the reader to the containing element.

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