Share via


Concat Method (String[])

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

Concatenates the elements of a specified String array.

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

Syntax

'Declaration
Public Shared Function Concat ( _
    ParamArray values As String() _
) As String
public static string Concat(
    params string[] values
)
public:
static String^ Concat(
    ... array<String^>^ values
)
static member Concat : 
        values:string[] -> string 
public static function Concat(
    ... values : String[]
) : String

Parameters

Return Value

Type: System. . :: . .String
The concatenated elements of values.

Exceptions

Exception Condition
ArgumentNullException

values is null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

OutOfMemoryException

Out of memory.

Remarks

The method concatenates each object in values; it does not add any delimiters.

An Empty string is used in place of any null object in the array.

.NET Framework Security

See Also

Reference

String Class

Concat Overload

System Namespace