String::Concat Method (Object, Object, Object, Object, ...)
Concatenates the string representations of four specified objects and any objects specified in an optional variable length parameter list.
Assembly: mscorlib (in mscorlib.dll)
[CLSCompliantAttribute(false)] public: static String^ Concat( Object^ arg0, Object^ arg1, Object^ arg2, Object^ arg3, ... )
Parameters
- arg0
- Type: System::Object
The first object to concatenate.
- arg1
- Type: System::Object
The second object to concatenate.
- arg2
- Type: System::Object
The third object to concatenate.
- arg3
- Type: System::Object
The fourth object to concatenate.
Return Value
Type: System::StringThe concatenated string representation of each value in the parameter list.
The method concatenates each object in the parameter list by calling its parameterless ToString method; it does not add any delimiters.
String::Empty is used in place of any null argument.
Note |
|---|
The last parameter of the Concat method is an optional comma-delimited list of one or more additional objects to concatenate. |
This method is marked with the vararg keyword, which means that it supports a variable number of parameters. The method can be called from Visual C++, but it cannot be called from C# or Visual Basic code. The C# and Visual Basic compilers resolve calls to Concat(Object, Object, Object, Object) as calls to Concat(array<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.
Note