Platform::StringReference Class

An optimization type that you can use to pass string data from Platform::String^ input parameters to other methods with a minimum of copy operations.

class StringReference

Name

Description

StringReference::StringReference Constructor

Two constructors for creating instances of StringReference.

Name

Description

StringReference::Data Method

Returns the string data as an array of char16 values.

StringReference::Length Method

Returns the number of characters in the string.

StringReference::GetHSTRING Method

Returns the string data as an HSTRING.

StringReference::GetString Method

Returns the string data as a Platform::String^.

Name

Description

StringReference::operator=

Assigns a StringReference to a new StringReference instance.

StringReference::operator()

Converts a StringReference to a Platform::String^.

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Header: vccorlib.h

Show:
© 2014 Microsoft