MarshalByValueComponent 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作 IComponent 並且提供由數值 (傳遞序列化物件的複本) 所封送處理之可遠端使用元件的基底實作。
public ref class MarshalByValueComponent : IDisposable, IServiceProvider, System::ComponentModel::IComponent
public ref class MarshalByValueComponent : IServiceProvider, System::ComponentModel::IComponent
C#
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))]
public class MarshalByValueComponent : IDisposable, IServiceProvider, System.ComponentModel.IComponent
C#
public class MarshalByValueComponent : IDisposable, IServiceProvider, System.ComponentModel.IComponent
C#
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ComponentConverter))]
[System.Runtime.InteropServices.ComVisible(true)]
public class MarshalByValueComponent : IDisposable, IServiceProvider, System.ComponentModel.IComponent
C#
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()、 Site和 GetService(Type) 方法。
Marshal |
初始化 MarshalByValueComponent 類別的新執行個體。 |
Container |
取得元件的容器。 |
Design |
取得值,表示元件目前是否處於設計模式。 |
Events |
取得附加在這個元件上的事件處理常式清單。 |
Site |
取得或設定元件的網站。 |
Dispose() |
釋放 MarshalByValueComponent 所使用的所有資源。 |
Dispose(Boolean) |
釋放 MarshalByValueComponent 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
Finalize() |
允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 |
Get |
做為預設雜湊函式。 (繼承來源 Object) |
Get |
取得 IServiceProvider 的實作器。 |
Get |
取得目前執行個體的 Type。 (繼承來源 Object) |
Memberwise |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
To |
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |