Container.Add Method (IComponent)

 
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.

Adds the specified Component to the Container. The component is unnamed.

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

public virtual void Add(
	IComponent component
)

Parameters

component
Type: System.ComponentModel.IComponent

The component to add.

Exception Condition
ArgumentNullException

component is null.

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