String::operator+ Operator

String::operator+ Operator


Indicates whether two specifed String objects have the same value.

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


The first String object.


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

© 2016 Microsoft