MarshalByValueComponent 类

实现 IComponent 并提供可远程控制的组件的基实现,该组件是由值封送的(传递序列化对象的副本)。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
<ComVisibleAttribute(True)> _
Public Class MarshalByValueComponent
    Implements IComponent, IDisposable, IServiceProvider
用法
Dim instance As MarshalByValueComponent
[ComVisibleAttribute(true)] 
public class MarshalByValueComponent : IComponent, IDisposable, IServiceProvider
[ComVisibleAttribute(true)] 
public ref class MarshalByValueComponent : IComponent, IDisposable, IServiceProvider
/** @attribute ComVisibleAttribute(true) */ 
public class MarshalByValueComponent implements IComponent, IDisposable, 
    IServiceProvider
ComVisibleAttribute(true) 
public class MarshalByValueComponent implements IComponent, IDisposable, 
    IServiceProvider

备注

组件可以包含在容器中。对于容器中的每个组件,该容器都创建一个它用来管理该组件的位置。组件主要通过容器提供的 ISite(这是容器特定的基于组件的信息储存库)与其容器交互。

给继承者的说明 当从该类继承时,可以重写 DisposeSiteGetService 方法。

继承层次结构

System.Object
  System.ComponentModel.MarshalByValueComponent
     派生类

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

MarshalByValueComponent 成员
System.ComponentModel 命名空间
ISite 接口