IWSDAddress::Serialize (Compact 2013)

3/26/2014

This method assembles the component parts of the address into a string.

Syntax

HRESULT Serialize(
  LPWSTR pszBuffer,
  DWORD cchLength,
  BOOL fSafe
);

Parameters

  • pszBuffer
    [out] Buffer to receive the assembled address.
  • cchLength
    [in] Length of pszBuffer, in bytes.
  • fSafe
    [in] If TRUE, the resulting string will be network safe. For example, if you used IWSDTransportAddress to build an IPv6 address, the serialized string will not contain the IPv6 scope identifier. However, if fSafe is FALSE, then the resulting string will contain the IPv6 scope identifier. For all other IWSDAddress derived objects, there is no specific meaning for this parameter (other than ensuring that the method generate portable addresses).

Return Value

The following table shows the possible error code return values.

Error code

Description

S_OK

This method completed successfully.

E_POINTER

pszBuffer is NULL.

E_ABORT

The method could not be completed.

Requirements

Header

wsdapi.h

Library

wsdapi.lib

See Also

Reference

IWSDAddress
Web Services on Devices Interfaces