NestedContainer Constructor (IComponent)

 

Initializes a new instance of the NestedContainer class.

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

public NestedContainer(
	IComponent owner
)

Parameters

owner
Type: System.ComponentModel.IComponent

The IComponent that owns this nested container.

Exception Condition
ArgumentNullException

owner is null.

This constructor enlists in its owner's Disposed event so that the nested container's Dispose method will automatically be called.

.NET Framework
Available since 2.0
Return to top
Show: