NestedContainer.CreateSite Method (IComponent, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a site for the component within the container.

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

protected override ISite CreateSite(
	IComponent component,
	string name
)

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: