Creates a new string from the concatenation of two specific strings.
[Visual Basic] Overloads Public Shared Function Concat( _ ByVal args() As Object _ ) As String [C#] public static string Concat( object[] args ); [C++] public: static String* Concat( Object* args[] ); [JScript] public static function Concat( args : Object[] ) : String;
The new string.
Exception Type | Condition |
---|---|
ArgumentNullException | If the object is null. |
The Concat method is used to create new strings from several prior existing objects. The args parameter cannot be null or an exception is thrown.
String Class | String Members | System Namespace | String.Concat Overload List | Object