MarshalByValueComponent 類別

定義

實作 IComponent 並且提供由數值 (傳遞序列化物件的複本) 所封送處理之可遠端使用元件的基底實作。

public ref class MarshalByValueComponent : IDisposable, IServiceProvider, System::ComponentModel::IComponent
public ref class MarshalByValueComponent : IServiceProvider, System::ComponentModel::IComponent
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))]
public class MarshalByValueComponent : IDisposable, IServiceProvider, System.ComponentModel.IComponent
public 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
public class MarshalByValueComponent : IServiceProvider, System.ComponentModel.IComponent
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))>]
type MarshalByValueComponent = class
    interface IComponent
    interface IDisposable
    interface IServiceProvider
type MarshalByValueComponent = class
    interface IComponent
    interface IDisposable
    interface IServiceProvider
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MarshalByValueComponent = class
    interface IComponent
    interface IDisposable
    interface IServiceProvider
Public Class MarshalByValueComponent
Implements IComponent, IDisposable, IServiceProvider
Public Class MarshalByValueComponent
Implements IComponent, IServiceProvider
繼承
MarshalByValueComponent
衍生
屬性
實作

備註

元件可以包含在容器中。 針對容器中的每個元件,容器會建立用來管理元件的月臺。 元件主要會透過容器提供的 ISite,與其容器互動,這是容器特定、每個元件資訊的存放庫。

給繼承者的注意事項

當您繼承自這個類別時,可以覆寫 Dispose()SiteGetService(Type) 方法。

建構函式

MarshalByValueComponent()

初始化 MarshalByValueComponent 類別的新執行個體。

屬性

Container

取得元件的容器。

DesignMode

取得值,表示元件目前是否處於設計模式。

Events

取得附加在這個元件上的事件處理常式清單。

Site

取得或設定元件的網站。

方法

Dispose()

釋放 MarshalByValueComponent 所使用的所有資源。

Dispose(Boolean)

釋放 MarshalByValueComponent 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetService(Type)

取得 IServiceProvider 的實作器。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回任何包含 Component 名稱的 String。 不應覆寫此方法。

事件

Disposed

加入事件處理常式來接聽元件上的 Disposed 事件。

適用於

另請參閱