NestedContainer::CreateSite Method (IComponent^, String^)
.NET Framework (current version)
Creates a site for the component within the container.
Assembly: System (in System.dll)
Parameters
- component
-
Type:
System.ComponentModel::IComponent^
The IComponent to create a site for.
- name
-
Type:
System::String^
The name to assign to component, or null to skip the name assignment.
| Exception | Condition |
|---|---|
| ArgumentNullException | component is null. |
If the name parameter is null, the IComponent is added to the nested container without an identifying name.
.NET Framework
Available since 2.0
Available since 2.0
Show: