Bridge

String..::..Insert Method

Returns a new string in which a specified string is inserted at a specified index position in this instance.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public string Insert(
	int startIndex,
	string value
)
<TemplateAttribute> _
Public Function Insert ( _
	startIndex As Integer, _
	value As String _
) As String
[TemplateAttribute]
public:
String^ Insert(
	int^ startIndex, 
	String^ value
)

Parameters

startIndex
Type: System..::..Int32
The zero-based index position of the insertion.
value
Type: System..::..String
The string to insert.

Return Value

A new string that is equivalent to this instance, but with value inserted at position startIndex.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionvalue is null.
System..::..ArgumentOutOfRangeExceptionstartIndex is negative or greater than the length of this instance.