Provides the base implementation for the IComponent interface and enables object sharing between applications.
See Also: Component
public class Component : MarshalByRefObject, IComponent, IDisposable
Component is the base class for all components in the common language runtime that marshal by reference. Component is remotable and derives from the MarshalByRefObject class. Component provides an implementation of the IComponent interface. The MarshalByValueComponent provides an implementation of IComponent that marshals by value.
You can host a Component in any object that implements the IContainer interface, and you can query and get services from its container. The container creates an ISite for each Component it contains. The container uses the site to manage the Component and is used by the Component to communicate with its container.
A Component should release resources explicitly by calls to its Component.Dispose method, without waiting for automatic memory management through an implicit call to the Object.Finalize method. When a Container is disposed, all components within the Container are also disposed.
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 220.127.116.11, 18.104.22.168
The members of System.ComponentModel.Component are listed below.
See Also: MarshalByRefObject
Gets a value indicating whether the component can raise an event.
Gets a value that indicates whether the Component is currently in design mode.
Gets the list of event handlers that are attached to this Component.