Concat Method (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 the elements in a specified Object array.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Function Concat ( _
ParamArray args As Object() _
) As String
public static string Concat(
params Object[] args
)
public:
static String^ Concat(
... array<Object^>^ args
)
static member Concat :
args:Object[] -> string
public static function Concat(
... args : Object[]
) : String
Parameters
- args
Type: array<System. . :: . .Object> [] () [] []
An object array that contains the elements to concatenate.
Return Value
Type: System. . :: . .String
The concatenated string representations of the values of the elements in args.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | args is null Nothing nullptr unit a null reference (Nothing in Visual Basic) . |
OutOfMemoryException | Out of memory. |
Remarks
The method concatenates each object in args by calling the parameterless ToString method of that object; it does not add any delimiters.
String..::..Empty 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.