Mono Class Library: System.String Overview | Members

System.String.Remove Method

Deletes a specified number of characters from the current instance beginning at a specified index.

public string Remove (int startIndex, int count)

Parameters

startIndex
A int containing the index of the current instance from which to start deleting characters.
count
A int containing the number of characters to delete.

Returns

A new string that is equivalent to the current instance without the specified range characters.

Exceptions

TypeReason
ArgumentOutOfRangeException

startIndex or count is less than zero.

-or-

startIndex plus count is greater than the length of the current instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0