NestedContainer::CreateSite Method (IComponent^, String^)

 

Creates a site for the component within the container.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected:
virtual ISite^ CreateSite(
	IComponent^ component,
	String^ name
) override

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.

Return Value

Type: System.ComponentModel::ISite^

The newly created ISite.

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
Return to top
Show: