Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

String::operator+ Operator

Indicates whether two specifed String objects have the same value.

    bool String::operator+( String^ str1,
                             String^ str2)

str1

The first String object.

str2

The second String object, whose contents will be appended to str1.

true if str1 is equal to str2; otherwise, false.

This operator creates a String^ object that contains the data from the two operands. Use it for convenience when extreme performance is not critical. A few calls to "+" in a function will probably not be noticeable, but if you are manipulating large objects or text data in a tight loop, then use the standard C++ mechanisms and types.

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: vccorlib.h

Show:
© 2015 Microsoft