IContainer Interface
TOC
Collapse the table of content
Expand the table of content

IContainer Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Provides functionality for containers. Containers are objects that logically contain zero or more components.

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

public interface IContainer : IDisposable

The IContainer type exposes the following members.

  NameDescription
Public propertyComponentsGets all the components in the IContainer.
Top

  NameDescription
Public methodAdd(IComponent)Adds a component to the container.
Public methodAdd(IComponent, String)Adds a component to the container.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodRemoveRemoves a component from the container.
Top

This interface exists as a type system requirement for ITypeDescriptorContext and compatibility requirements for TypeConverter. It is not intended for implementation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft