Share via


Concat Method (Object, Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Concatenates the string representations of two specified objects.

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

Syntax

'Declaration
Public Shared Function Concat ( _
    arg0 As Object, _
    arg1 As Object _
) As String
public static string Concat(
    Object arg0,
    Object arg1
)
public:
static String^ Concat(
    Object^ arg0, 
    Object^ arg1
)
static member Concat : 
        arg0:Object * 
        arg1:Object -> string 
public static function Concat(
    arg0 : Object, 
    arg1 : Object
) : String

Parameters

Return Value

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

Remarks

The method concatenates arg0 and arg1by calling the parameterless ToString method of arg0 and arg1; it does not add any delimiters.

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

If either of the arguments is an array reference, the method concatenates a string representing that array, instead of its members (for example, "System.String[]").

.NET Framework Security

See Also

Reference

String Class

Concat Overload

System Namespace