Container.Add メソッド

定義

ComponentContainerを追加します。

オーバーロード

名前 説明
Add(IComponent)

指定した ComponentContainerに追加します。 コンポーネントに名前が付いていない。

Add(IComponent, String)

指定した ComponentContainer に追加し、名前を割り当てます。

Add(IComponent)

ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs

指定した ComponentContainerに追加します。 コンポーネントに名前が付いていない。

public:
 virtual void Add(System::ComponentModel::IComponent ^ component);
public virtual void Add(System.ComponentModel.IComponent? component);
public virtual void Add(System.ComponentModel.IComponent component);
abstract member Add : System.ComponentModel.IComponent -> unit
override this.Add : System.ComponentModel.IComponent -> unit
Public Overridable Sub Add (component As IComponent)

パラメーター

component
IComponent

追加するコンポーネント。

実装

例外

componentnullです。

注釈

このメソッドは、派生クラスによってオーバーライドできます。

新しい Component がリストの末尾に追加されます。

こちらもご覧ください

適用対象

Add(IComponent, String)

ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs
ソース:
Container.cs

指定した ComponentContainer に追加し、名前を割り当てます。

public:
 virtual void Add(System::ComponentModel::IComponent ^ component, System::String ^ name);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of components in the container cannot be statically discovered to validate the name.")]
public virtual void Add(System.ComponentModel.IComponent? component, string? name);
public virtual void Add(System.ComponentModel.IComponent component, string name);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of components in the container cannot be statically discovered to validate the name.")>]
abstract member Add : System.ComponentModel.IComponent * string -> unit
override this.Add : System.ComponentModel.IComponent * string -> unit
abstract member Add : System.ComponentModel.IComponent * string -> unit
override this.Add : System.ComponentModel.IComponent * string -> unit
Public Overridable Sub Add (component As IComponent, name As String)

パラメーター

component
IComponent

追加するコンポーネント。

name
String

コンポーネントに割り当てる、大文字と小文字を区別しない一意の名前。

-又は-

nullは、コンポーネントの名前が付いていない状態を示します。

実装

属性

例外

componentnullです。

name は一意ではありません。

注釈

このメソッドは、派生クラスによってオーバーライドできます。

新しい Component がリストの末尾に追加されます。

こちらもご覧ください

適用対象