Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates zero or more components.
public ref class Container : IDisposable, System::ComponentModel::IContainer
public ref class Container : System::ComponentModel::IContainer
public class Container : IDisposable, System.ComponentModel.IContainer
public class Container : System.ComponentModel.IContainer
type Container = class interface IContainer interface IDisposable
Public Class Container Implements IContainer, IDisposable
Public Class Container Implements IContainer
Containers are objects that encapsulate and track zero or more components. In this context, containment refers to logical containment, not visual containment. You can use components and containers in a variety of scenarios, including scenarios that are both visual and not visual.
The components in a container are tracked in a first-in, first-out list, which also defines the order of the components within the container. Added components are appended to the end of the list.
Initializes a new instance of the Container class.
Gets all the components in the Container.
Releases all resources used by the Container.
Releases the unmanaged resources used by the Container, and optionally releases the managed resources.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Releases unmanaged resources and performs other cleanup operations before the Container is reclaimed by garbage collection.
Serves as the default hash function.(Inherited from Object)
Gets the service object of the specified type, if it is available.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Removes a component from the Container.
Returns a string that represents the current object.(Inherited from Object)
Determines whether the component name is unique for this container.