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. [Edit]

public string Remove (int startIndex, int count)

Parameters

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

Returns

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

Exceptions

TypeReason
ArgumentOutOfRangeException

startIndex or count is less than zero.

-or-

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

[Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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