asp.net.ph

String.Join Method ( String, String [ ] )

System Namespace   String Class


Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.

[ VB ]
<Serializable>
Overloads Public Shared Function Join ( _
   ByVal separator As String, _
   ByVal value ( ) As String _
) As String

[ C# ]
[ Serializable ]
public static string Join (
   string separator,
   string [ ] value
);

[ C++ ]
[ Serializable ]
public: static String* Join (
   String* separator,
   String* value __gc [ ]
);

[ JScript ]
public Serializable
static function Join (
   separator : String,
   value : String[ ]
) : String;

Parameters

separator
A String.
value
An array of String s.

Return Value

A String consisting of the elements of value interspersed with the separator string.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference ( Nothing in Visual Basic ).

Remarks

For example if separator is ", " and the elements of value are "apple", "orange", "grape", and "pear", Join ( separator, value ) returns "apple, orange, grape, pear".

See Also

String Members   String.Join Overload List   Concat   Insert   Remove   Replace   Split   Substring   Trim Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph