Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HString::MakeReference Method

HString::MakeReference Method

Creates an HStringReference object from a specified string parameter.

template<unsigned int sizeDest>
    static HStringReference MakeReference(
              wchar_t const (&str)[ sizeDest]);

    template<unsigned int sizeDest>
    static HStringReference MakeReference(
              wchar_t const (&str)[sizeDest], 
              unsigned int len);

sizeDest

A template parameter that specifies the size of the destination HStringReference buffer.

str

A reference to a wide-character string.

len

The maximum length of the str parameter buffer to use in this operation. If the len parameter isn't specified, the entire str parameter is used.

An HStringReference object whose value is the same as the specified str parameter.

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

Show:
© 2015 Microsoft