MarshalByValueComponent.Site 属性

获取或设置组件的位置。

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

语法

声明
Public Overridable Property Site As ISite
用法
Dim instance As MarshalByValueComponent
Dim value As ISite

value = instance.Site

instance.Site = value
public virtual ISite Site { get; set; }
public:
virtual property ISite^ Site {
    ISite^ get ();
    void set (ISite^ value);
}
/** @property */
public ISite get_Site ()

/** @property */
public void set_Site (ISite value)
public function get Site () : ISite

public function set Site (value : ISite)

属性值

实现表示组件位置的 ISite 接口的对象。

备注

该属性的有效值,即该值不为 空引用(在 Visual Basic 中为 Nothing),指示该组件已被添加到容器中。

当该属性的值为 空引用(在 Visual Basic 中为 Nothing) 时,该属性指示正从容器中移除组件。但是,该属性不从容器中移除组件。

给继承者的说明 若要更改此行为,请从该类继承并在此属性中进行获取和设置。

平台

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

请参见

参考

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