Component (Clase)
Actualización: noviembre 2007
Proporciona la implementación base de la interfaz IComponent y permite que las aplicaciones compartan objetos.
Ensamblado: System (en System.dll)
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] [ComVisibleAttribute(true)] public class Component : MarshalByRefObject, IComponent, IDisposable
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ /** @attribute ComVisibleAttribute(true) */ public class Component extends MarshalByRefObject implements IComponent, IDisposable
La clase Component es la clase base de todos los componentes de Common Language Runtime que calcula referencias por referencia. La clase Component se puede utilizar en modo remoto y se deriva de la clase MarshalByRefObject. La clase Component proporciona una implementación de la interfaz IComponent. La clase MarshalByValueComponent proporciona una implementación de IComponent que calcula referencias por valor.
Es posible alojar un objeto Component en cualquier objeto que implemente la interfaz IContainer, y también se pueden consultar y obtener servicios desde su contenedor. El contenedor crea ISite para cada Component que contiene. El contenedor utiliza el sitio para administrar Component y, a su vez, Component utiliza el sitio para comunicarse con su contenedor.
Un objeto Component debe liberar recursos de forma explícita mediante llamadas a su método Dispose, sin esperar a la administración automática de la memoria a través de una llamada implícita al método Finalize. Cuando se desecha Container, todos los componentes de Container también se desechan.
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.ManagementConsole.Advanced.WaitDialog
Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray
System.CodeDom.Compiler.CodeDomProvider
System.ComponentModel.BackgroundWorker
System.Configuration.Install.Installer
System.Data.Common.DataAdapter
System.Data.Common.DbCommand
System.Data.Common.DbCommandBuilder
System.Data.Common.DbConnection
System.Diagnostics.EventLog
System.Diagnostics.EventLogEntry
System.Diagnostics.PerformanceCounter
System.Diagnostics.Process
System.Diagnostics.ProcessModule
System.Diagnostics.ProcessThread
System.DirectoryServices.DirectoryEntry
System.DirectoryServices.DirectorySearcher
System.Drawing.Printing.PrintDocument
System.IO.FileSystemWatcher
System.IO.Ports.SerialPort
System.Management.ManagementBaseObject
System.Management.ManagementEventWatcher
System.Management.ManagementObjectSearcher
System.Media.SoundPlayer
System.Messaging.Message
System.Messaging.MessageQueue
System.Net.NetworkInformation.Ping
System.Net.WebClient
System.Runtime.Remoting.Services.RemotingClientProxy
System.Runtime.Remoting.Services.RemotingService
System.ServiceProcess.ServiceBase
System.ServiceProcess.ServiceController
System.Timers.Timer
System.Web.Services.Protocols.WebClientProtocol
System.Web.UI.WebControls.Style
System.Windows.Forms.BindingSource
System.Windows.Forms.ColumnHeader
System.Windows.Forms.CommonDialog
System.Windows.Forms.Control
System.Windows.Forms.DataGridColumnStyle
System.Windows.Forms.DataGridTableStyle
System.Windows.Forms.Design.FolderNameEditor.FolderBrowser
System.Windows.Forms.ErrorProvider
System.Windows.Forms.HelpProvider
System.Windows.Forms.ImageList
System.Windows.Forms.Menu
System.Windows.Forms.NotifyIcon
System.Windows.Forms.StatusBarPanel
System.Windows.Forms.Timer
System.Windows.Forms.ToolBarButton
System.Windows.Forms.ToolStripItem
System.Windows.Forms.ToolStripPanelRow
System.Windows.Forms.ToolTip
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile para Smartphone, Windows Mobile para Pocket PC, Xbox 360
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.