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
- values
Type: array<System. . :: . .String> [] () [] []
An array of string instances.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.