ImmutableQueue.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Create<T>() |
會建立一個空且不可變的隊列。 |
| Create<T>(ReadOnlySpan<T>) |
建立一個新的不可變佇列,包含指定的項目陣列。 |
| Create<T>(T) |
建立一個新的不可變佇列,包含指定的項目。 |
| Create<T>(T[]) |
建立一個新的不可變佇列,包含指定的項目陣列。 |
Create<T>()
會建立一個空且不可變的隊列。
public:
generic <typename T>
static System::Collections::Immutable::ImmutableQueue<T> ^ Create();
public static System.Collections.Immutable.ImmutableQueue<T> Create<T>();
static member Create : unit -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) () As ImmutableQueue(Of T)
類型參數
- T
不可變佇列中要儲存的項目類型。
傳回
一個空的、無法改變的隊列。
適用於
Create<T>(ReadOnlySpan<T>)
建立一個新的不可變佇列,包含指定的項目陣列。
public:
generic <typename T>
static System::Collections::Immutable::ImmutableQueue<T> ^ Create(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T>(scoped ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T>(ReadOnlySpan<T> items);
static member Create : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (items As ReadOnlySpan(Of T)) As ImmutableQueue(Of T)
類型參數
- T
不可變佇列中的項目類型。
參數
- items
- ReadOnlySpan<T>
一個包含要預先填充隊列項目的區間。
傳回
一個新的不可變佇列,包含指定的項目。
適用於
Create<T>(T)
建立一個新的不可變佇列,包含指定的項目。
public:
generic <typename T>
static System::Collections::Immutable::ImmutableQueue<T> ^ Create(T item);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T>(T item);
static member Create : 'T -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (item As T) As ImmutableQueue(Of T)
類型參數
- T
不可變佇列中的項目類型。
參數
- item
- T
要預先填入佇列的項目。
傳回
一個新的不可變佇列,包含指定的項目。
適用於
Create<T>(T[])
建立一個新的不可變佇列,包含指定的項目陣列。
public:
generic <typename T>
static System::Collections::Immutable::ImmutableQueue<T> ^ Create(... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableQueue<T> Create<T>(params T[] items);
static member Create : 'T[] -> System.Collections.Immutable.ImmutableQueue<'T>
Public Function Create(Of T) (ParamArray items As T()) As ImmutableQueue(Of T)
類型參數
- T
不可變佇列中的項目類型。
參數
- items
- T[]
一個包含要預先填充佇列項目的陣列。
傳回
一個新的不可變佇列,包含指定的項目。