IContainer.Add Methode
Definition
Fügt dem IContainer die angegebene Komponente hinzu.Adds the specified component to the IContainer.
Überlädt
Add(IComponent) |
Fügt dem IComponent am Ende der Liste die angegebene IContainer hinzu.Adds the specified IComponent to the IContainer at the end of the list. |
Add(IComponent, String) |
Fügt dem IComponent am Ende der Liste die angegebene IContainer hinzu und weist der Komponente einen Namen zu.Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component. |
Add(IComponent)
Fügt dem IComponent am Ende der Liste die angegebene IContainer hinzu.Adds the specified IComponent to the IContainer at the end of the list.
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)
Parameter
- component
- IComponent
Das hinzuzufügende IComponent.The IComponent to add.
Hinweise
Die neue IComponent wird am Ende der Liste hinzugefügt.The new IComponent is added at the end of the list.
Gilt für:
Add(IComponent, String)
Fügt dem IComponent am Ende der Liste die angegebene IContainer hinzu und weist der Komponente einen Namen zu.Adds the specified IComponent to the IContainer at the end of the list, and assigns a name to the component.
public:
void Add(System::ComponentModel::IComponent ^ component, System::String ^ name);
public void Add (System.ComponentModel.IComponent? component, string? name);
public void Add (System.ComponentModel.IComponent component, string name);
abstract member Add : System.ComponentModel.IComponent * string -> unit
Public Sub Add (component As IComponent, name As String)
Parameter
- component
- IComponent
Das hinzuzufügende IComponent.The IComponent to add.
- name
- String
Der eindeutige Name für die Komponente, bei dem die Groß- und Kleinschreibung nicht berücksichtigt wird.The unique, case-insensitive name to assign to the component.
- oder --or-
null
, wenn der Komponente kein Name zugewiesen wird.null
that leaves the component unnamed.
Hinweise
Die neue IComponent wird am Ende der Liste hinzugefügt.The new IComponent is added at the end of the list.
Hinweise für Ausführende
Wenn Sie von Erben Add(IComponent) , müssen Sie sicherstellen, dass name
, falls nicht null
, für dieses eindeutig ist IContainer .When you inherit from Add(IComponent), you must assure that name
, if not null
, is unique for this IContainer.