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