Bridge

String..::..Remove Method (Int32, Int32)

Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.

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

Syntax


[TemplateAttribute]
public string Remove(
	int index,
	int count
)
<TemplateAttribute> _
Public Function Remove ( _
	index As Integer, _
	count As Integer _
) As String
[TemplateAttribute]
public:
String^ Remove(
	int^ index, 
	int^ count
)

Parameters

index
Type: System..::..Int32
count
Type: System..::..Int32
The number of characters to delete.

Return Value

A new string that is equivalent to this instance except for the removed characters.

Exceptions


ExceptionCondition
System..::..ArgumentOutOfRangeExceptionEither startIndex or count is less than zero.-or- startIndex plus count specify a position outside this instance.