String::Concat Method

String::Concat Method


Concatenates the values of two String objects.

String^ Concat( String ^ str1, 
String ^ str2


The first String object, or null.


The second String object, or null.

A new String^ object whose value is the concatenation of the values of str1 and str2.

If str1 is null and str2 is not, str1 is returned. If str2 is null and str1 is not, str2 is returned. If str1 and str2 are both null, the empty string (L"") is returned.


Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: vccorlib.h

© 2016 Microsoft