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.

IPropertyValue::GetChar16Array method

Gets the the array of Unicode characters that is stored in the current IPropertyValue object.

Syntax


HRESULT GetChar16Array(
  [out]                    UINT32 *length,
  [out, size_is(,*length)] WCHAR  **value
);

Parameters

length [out]

Type: UINT32*

The number of Unicode characters in the array.

value [out]

Type: WCHAR**

The array of Unicode characters.

The returned pointer must be freed using CoTaskMemFree.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Error codes

NameMeaning
E_TYPE_MISMATCH

The values stored in IPropertyValue are not of type WCHAR.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.h

IDL

Windows.Foundation.idl

See also

IPropertyValue
IPropertyValueStatics::CreateChar16Array

 

 

Show:
© 2017 Microsoft