FreezableCollection<T> コンストラクター
定義
FreezableCollection<T> の新しいインスタンスを初期化します。Initializes a new instance of FreezableCollection<T>.
オーバーロード
FreezableCollection<T>() |
空で、既定の初期量を備えた、FreezableCollection<T> の新しいインスタンスを初期化します。Initializes a new instance of FreezableCollection<T> that is empty and has the default initial capacity. |
FreezableCollection<T>(IEnumerable<T>) |
指定したコレクションと同じ要素を格納する FreezableCollection<T> クラスの新しいインスタンスを初期化します。Initializes a new instance of the FreezableCollection<T> class that contains the same elements as the specified collection. |
FreezableCollection<T>(Int32) |
空で、指定した初期量を備えた、FreezableCollection<T> の新しいインスタンスを初期化します。Initializes a new instance of the FreezableCollection<T> that is empty and has the specified initial capacity. |
FreezableCollection<T>()
空で、既定の初期量を備えた、FreezableCollection<T> の新しいインスタンスを初期化します。Initializes a new instance of FreezableCollection<T> that is empty and has the default initial capacity.
public:
FreezableCollection();
public FreezableCollection ();
Public Sub New ()
適用対象
FreezableCollection<T>(IEnumerable<T>)
指定したコレクションと同じ要素を格納する FreezableCollection<T> クラスの新しいインスタンスを初期化します。Initializes a new instance of the FreezableCollection<T> class that contains the same elements as the specified collection.
public:
FreezableCollection(System::Collections::Generic::IEnumerable<T> ^ collection);
public FreezableCollection (System.Collections.Generic.IEnumerable<T> collection);
new System.Windows.FreezableCollection<'T (requires 'T :> System.Windows.DependencyObject)> : seq<'T (requires 'T :> System.Windows.DependencyObject)> -> System.Windows.FreezableCollection<'T (requires 'T :> System.Windows.DependencyObject)>
Public Sub New (collection As IEnumerable(Of T))
パラメーター
- collection
- IEnumerable<T>
新しい FreezableCollection<T> に項目を追加する必要があるコレクション。The collection whose items should be added to the new FreezableCollection<T>.
例外
collection
が null
です。collection
is null
.
注釈
この操作では、指定されたコレクションに対して簡易コピーを実行します。コレクションの要素への参照のみがコピーされ、要素自体は複製されません。This operation performs a shallow copy on the specified collection; only references to the collection's elements are copied, the elements themselves are not cloned. 新しいの要素を変更すると、 FreezableCollection<T> の要素も変更さ collection
れます。Modifying an element of the new FreezableCollection<T> also modifies that element for collection
.
要素は、 FreezableCollection<T> 指定されたコレクションの列挙子によって読み取られた順序で、新しいに配置されます。The elements are placed in the new FreezableCollection<T> in the same order they are read by the enumerator of the specified collection.
適用対象
FreezableCollection<T>(Int32)
空で、指定した初期量を備えた、FreezableCollection<T> の新しいインスタンスを初期化します。Initializes a new instance of the FreezableCollection<T> that is empty and has the specified initial capacity.
public:
FreezableCollection(int capacity);
public FreezableCollection (int capacity);
new System.Windows.FreezableCollection<'T (requires 'T :> System.Windows.DependencyObject)> : int -> System.Windows.FreezableCollection<'T (requires 'T :> System.Windows.DependencyObject)>
Public Sub New (capacity As Integer)
パラメーター
- capacity
- Int32
新しいコレクションで最初に格納できる要素の数を指定する 0 以上の値。A value that is greater than or equal to 0 that specifies the number of elements the new collection can initially store.
例外
capacity
が 0 未満です。capacity
is less than 0.