Platform::StringReference Class

This topic has not yet been rated - Rate this topic

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

JJ157121.collapse_all(en-us,VS.110).gifPublic Constructors

Name

Description

StringReference::StringReference Constructor

Two constructors for creating instances of StringReference.

JJ157121.collapse_all(en-us,VS.110).gifPublic Methods

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^.

JJ157121.collapse_all(en-us,VS.110).gifPublic Operators

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.