IContainer.Add 메서드

정의

지정된 구성 요소를 IContainer.에 추가합니다.

오버로드

Name Description
Add(IComponent)

목록의 끝에 지정된 IComponentIContainer 값을 추가합니다.

Add(IComponent, String)

목록의 끝에 지정된 IComponentIContainer 값을 추가하고 구성 요소에 이름을 할당합니다.

Add(IComponent)

Source:
IContainer.cs
Source:
IContainer.cs
Source:
InvalidAsynchronousStateException.cs

목록의 끝에 지정된 IComponentIContainer 값을 추가합니다.

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

매개 변수

component
IComponent

추가할 개체입니다 IComponent .

설명

목록의 끝에 새 IComponent 항목이 추가됩니다.

적용 대상

Add(IComponent, String)

Source:
IContainer.cs
Source:
IContainer.cs
Source:
InvalidAsynchronousStateException.cs

목록의 끝에 지정된 IComponentIContainer 값을 추가하고 구성 요소에 이름을 할당합니다.

public:
 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 void Add(System.ComponentModel.IComponent? component, string? name);
public void Add(System.ComponentModel.IComponent? component, string? name);
public 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
abstract member Add : System.ComponentModel.IComponent * string -> unit
Public Sub Add (component As IComponent, name As String)

매개 변수

component
IComponent

추가할 개체입니다 IComponent .

name
String

구성 요소에 할당할 대/소문자를 구분하지 않는 고유한 이름입니다.

-또는-

null 구성 요소를 명명되지 않은 것으로 만듭니다.

특성

설명

목록의 끝에 새 IComponent 항목이 추가됩니다.

구현자 참고

상속Add(IComponent)할 때는 그렇지 않은 name경우 이에 null대해 고유해야 합니다IContainer.

적용 대상