String.Concat Method (Object, Object, Object)

Concatenates the string representations of three specified objects.

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

static member Concat : 
        arg0:Object * 
        arg1:Object * 
        arg2:Object -> string

Parameters

arg0
Type: System.Object

The first object to concatenate.

arg1
Type: System.Object

The second object to concatenate.

arg2
Type: System.Object

The third object to concatenate.

Return Value

Type: System.String
The concatenated string representations of the values of arg0, arg1, and arg2.

The method concatenates arg0, arg1, and arg2 by calling the parameterless ToString method of each object; it does not add any delimiters.

String.Empty is used in place of any null argument.

The following example demonstrates the Concat method.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft