This documentation is archived and is not being maintained.
String::Concat Method (array<Object>)
Visual Studio 2010
Concatenates the string representations of the elements in a specified Object array.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- args
- Type: array<System::Object>
An object array that contains the elements to concatenate.
Return Value
Type: System::StringThe concatenated string representations of the values of the elements in args.
| Exception | Condition |
|---|---|
| ArgumentNullException | args is nullptr. |
| OutOfMemoryException | Out of memory. |
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.
Notes to CallersThis method is not called by C++ code. The C++ compiler resolves calls to Concat that have four or more object parameters as a call to Concat(Object, Object, Object, Object),
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: