ValueString.Substring Method

Definition

Overloads

Substring(Int32)

Retrieves a substring from this string. The substring starts at the specified zero-based character index and continues to the end of the string.

Substring(Int32, Int32)

Retrieves a substring from this string. The substring starts at the specified zero-based character index and has the specified length.

Substring(Int32)

Retrieves a substring from this string. The substring starts at the specified zero-based character index and continues to the end of the string.

public Microsoft.Windows.EventTracing.ValueString Substring (int startIndex);
member this.Substring : int -> Microsoft.Windows.EventTracing.ValueString
Public Function Substring (startIndex As Integer) As ValueString

Parameters

startIndex
Int32

The zero-based character index of a substring in this string.

Returns

A string that is equivalent to the substring that starts at the specified startIndex in this string, or Empty if startIndex is equal to the length of this string.

Exceptions

startIndex is greater than the length of this string.

-or-

startIndex is less than zero.

Remarks

If startIndex is zero, the method returns the original string unchanged.

Applies to

Substring(Int32, Int32)

Retrieves a substring from this string. The substring starts at the specified zero-based character index and has the specified length.

public Microsoft.Windows.EventTracing.ValueString Substring (int startIndex, int length);
member this.Substring : int * int -> Microsoft.Windows.EventTracing.ValueString
Public Function Substring (startIndex As Integer, length As Integer) As ValueString

Parameters

startIndex
Int32

The zero-based character index of a substring in this string.

length
Int32

The number of characters in the substring.

Returns

A string that is equivalent to the substring of length length that starts at the specified startIndex in this string, or Emptylength is zero.

Exceptions

startIndex plus length indicates a position not within this string.

-or-

startIndex or length is less than zero.

Applies to