Export (0) Print
Expand All

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:
© 2014 Microsoft