This documentation is archived and is not being maintained.

String.Concat Method (Object, Object, Object, Object)

Concatenates the String representations of four specified objects and any objects specified in an optional variable length parameter list.

This method is not CLS-compliant.   The CLS-compliant alternative is Concat(Object[]).

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

static String^ Concat (
	Object^ arg0, 
	Object^ arg1, 
	Object^ arg2, 
	Object^ arg3
/** @attribute CLSCompliantAttribute(false) */ 
public static String Concat (
	Object arg0, 
	Object arg1, 
	Object arg2, 
	Object arg3
public static function Concat (
	arg0 : Object, 
	arg1 : Object, 
	arg2 : Object, 
	arg3 : Object
) : String
Not applicable.



The first Object.


The second Object.


The third Object.


The fourth Object.

Return Value

The concatenated String representations of the values of the arg0, arg1, arg2, and arg3 parameters.

An Empty string is used in place of any null argument.


The last parameter of the Concat method is an optional comma-delimited list of one or more additional objects to concatenate.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0