Edit

Share via


ExtendedDataItemReadOnlySpan.Slice Method

Definition

Overloads

Slice(Int32)

Forms a slice out of the given read-only span, beginning at 'start'.

Slice(Int32, Int32)

Forms a slice out of the given read-only span, beginning at 'start', of given length

Slice(Int32)

Forms a slice out of the given read-only span, beginning at 'start'.

public Microsoft.Windows.EventTracing.ExtendedDataItemReadOnlySpan Slice (int start);
member this.Slice : int -> Microsoft.Windows.EventTracing.ExtendedDataItemReadOnlySpan
Public Function Slice (start As Integer) As ExtendedDataItemReadOnlySpan

Parameters

start
Int32

The index at which to begin this slice.

Returns

Exceptions

Thrown when the specified start index is not in range (<0 or >Length).

Applies to

Slice(Int32, Int32)

Forms a slice out of the given read-only span, beginning at 'start', of given length

public Microsoft.Windows.EventTracing.ExtendedDataItemReadOnlySpan Slice (int start, int length);
member this.Slice : int * int -> Microsoft.Windows.EventTracing.ExtendedDataItemReadOnlySpan
Public Function Slice (start As Integer, length As Integer) As ExtendedDataItemReadOnlySpan

Parameters

start
Int32

The index at which to begin this slice.

length
Int32

The desired length for the slice (exclusive).

Returns

Exceptions

Thrown when the specified start or end index is not in range (<0 or >Length).

Applies to