Udostępnij za pośrednictwem


IContainer Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Interface IContainer _
    Inherits IDisposable
[ComVisibleAttribute(true)]
public interface IContainer : IDisposable

The IContainer type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Components Gets all the components in the IContainer.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Add(IComponent) Adds a component to the container.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Add(IComponent, String) Adds a component to the container.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Remove Removes a component from the container.

Top

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference