OptionalList<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
generic <typename T>
public ref class OptionalList : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Generic::IList<T>, System::Collections::Generic::IReadOnlyCollection<T>, System::Collections::Generic::IReadOnlyList<T>
public class OptionalList<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Generic.IReadOnlyCollection<T>, System.Collections.Generic.IReadOnlyList<T>
type OptionalList<'T> = class
interface IList<'T>
interface ICollection<'T>
interface seq<'T>
interface IEnumerable
interface IReadOnlyList<'T>
interface IReadOnlyCollection<'T>
Public Class OptionalList(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList(Of T), IReadOnlyCollection(Of T), IReadOnlyList(Of T)
類型參數
- T
- 繼承
-
OptionalList<T>
- 實作
建構函式
| 名稱 | Description |
|---|---|
| OptionalList<T>() | |
| OptionalList<T>(OptionalProperty<IList<T>>) | |
| OptionalList<T>(OptionalProperty<IReadOnlyList<T>>) | |
屬性
| 名稱 | Description |
|---|---|
| Count | |
| IsReadOnly | |
| IsUndefined | |
| Item[Int32] | |
方法
| 名稱 | Description |
|---|---|
| Add(T) | |
| Clear() | |
| Contains(T) | |
| CopyTo(T[], Int32) | |
| GetEnumerator() | |
| IndexOf(T) | |
| Insert(Int32, T) | |
| Remove(T) | |
| RemoveAt(Int32) | |
| Reset() | |
明確介面實作
| 名稱 | Description |
|---|---|
| IEnumerable.GetEnumerator() |
傳回逐一查看集合的列舉值。 |