ImmutableArray<T>.Slice(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定索引開始、長度指定,從電流 ImmutableArray<T> 中切出一個切片。
public:
System::Collections::Immutable::ImmutableArray<T> Slice(int start, int length);
public System.Collections.Immutable.ImmutableArray<T> Slice(int start, int length);
member this.Slice : int * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Slice (start As Integer, length As Integer) As ImmutableArray(Of T)
參數
- start
- Int32
從此切片開始的索引。
- length
- Int32
切片的期望長度。
傳回
一個ImmutableArray<T>由當前ImmutableArray<T>元素組成length的元素,從 開始start。