MarshalByValueComponent MarshalByValueComponent MarshalByValueComponent MarshalByValueComponent Class

Definition

Implementa IComponent y proporciona la implementación base de componentes utilizables en modo remoto cuyas referencias se calculan por valor (se pasa una copia del objeto serializado). Implements IComponent and provides the base implementation for remotable components that are marshaled by value (a copy of the serialized object is passed).

public ref class MarshalByValueComponent : IDisposable, IServiceProvider, System::ComponentModel::IComponent
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))]
[System.Runtime.InteropServices.ComVisible(true)]
public class MarshalByValueComponent : IDisposable, IServiceProvider, System.ComponentModel.IComponent
type MarshalByValueComponent = class
    interface IComponent
    interface IServiceProvider
    interface IDisposable
Public Class MarshalByValueComponent
Implements IComponent, IDisposable, IServiceProvider
Inheritance
MarshalByValueComponentMarshalByValueComponentMarshalByValueComponentMarshalByValueComponent
Derived
Attributes
Implements

Remarks

Un componente puede incluirse en un contenedor.A component can be contained in a container. Para cada componente en un contenedor, el contenedor crea un sitio que usa para administrar el componente.For each component in a container, the container creates a site that it uses to manage the component. El componente interactúa con su contenedor principalmente a través de un contenedor proporcionados ISite, que es un repositorio de información específica del contenedor, por componente.The component interacts with its container primarily through a container-provided ISite, which is a repository of container-specific, per-component information.

Notes to Inheritors

Al heredar de esta clase, puede invalidar el Dispose(), Sitey el GetService(Type) métodos. When you inherit from this class, you can override the Dispose(), Site, and the GetService(Type) methods.

Constructors

MarshalByValueComponent() MarshalByValueComponent() MarshalByValueComponent() MarshalByValueComponent()

Inicializa una nueva instancia de la clase MarshalByValueComponent. Initializes a new instance of the MarshalByValueComponent class.

Properties

Container Container Container Container

Obtiene el contenedor del componente. Gets the container for the component.

DesignMode DesignMode DesignMode DesignMode

Obtiene un valor que indica si el componente está actualmente en modo de diseño. Gets a value indicating whether the component is currently in design mode.

Events Events Events Events

Obtiene la lista de controladores de eventos asociados a este componente. Gets the list of event handlers that are attached to this component.

Site Site Site Site

Obtiene o establece el sitio del componente. Gets or sets the site of the component.

Methods

Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos que usa MarshalByValueComponent. Releases all resources used by the MarshalByValueComponent.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Libera los recursos no administrados que usa MarshalByValueComponent y, de forma opcional, libera los recursos administrados. Releases the unmanaged resources used by the MarshalByValueComponent and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual. Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Permite que un objeto intente liberar recursos y realizar otras operaciones de limpieza antes de que sea reclamado por la recolección de elementos no utilizados. Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada. Serves as the default hash function.

(Inherited from Object)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Obtiene el implementador de IServiceProvider. Gets the implementer of the IServiceProvider.

GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual. Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual. Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Devuelve una String que contiene el nombre del Component, si existe. Returns a String containing the name of the Component, if any. Este método no se debe invalidar. This method should not be overridden.

Events

Disposed Disposed Disposed Disposed

Agrega un controlador de eventos para escuchar el evento Disposed en el componente. Adds an event handler to listen to the Disposed event on the component.

Applies to

See Also