String..::..Substring Method (Int32)
Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[NameAttribute] public string Substring( int start )
<NameAttribute> _ Public Function Substring ( _ start As Integer _ ) As String
[NameAttribute] public: String^ Substring( int^ start )
Parameters
- start
- Type: System..::..Int32
Return Value
A string that is equivalent to the substring that begins at startIndex in this instance, or Empty if startIndex is equal to the length of this instance.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | startIndex is less than zero or greater than the length of this instance. |