Container::Add Method (IComponent^, String^)
.NET Framework (current version)
Namespace:
System.ComponentModel
Assembly: System (in System.dll)
Return to top
Assembly: System (in System.dll)
Parameters
- component
-
Type:
System.ComponentModel::IComponent^
The component to add.
- name
-
Type:
System::String^
The unique, case-insensitive name to assign to the component.
-or-
null, which leaves the component unnamed.
Implements
IContainer::Add(IComponent^, String^)| Exception | Condition |
|---|---|
| ArgumentNullException | component is null. |
| ArgumentException | name is not unique. |
This method can be overridden by a derived class.
The new Component is added to the end of the list.
.NET Framework
Available since 1.1
Available since 1.1
Show: