IContainer.Add 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 구성 요소를 IContainer.에 추가합니다.
오버로드
| Name | Description |
|---|---|
| Add(IComponent) |
목록의 끝에 지정된 IComponentIContainer 값을 추가합니다. |
| Add(IComponent, String) |
목록의 끝에 지정된 IComponentIContainer 값을 추가하고 구성 요소에 이름을 할당합니다. |
Add(IComponent)
- Source:
- IContainer.cs
- Source:
- IContainer.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
목록의 끝에 지정된 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 .
- 특성
설명
목록의 끝에 새 IComponent 항목이 추가됩니다.
구현자 참고
상속Add(IComponent)할 때는 그렇지 않은 name경우 이에 null대해 고유해야 합니다IContainer.