MarshalByValueComponent.Site 属性
定义
获取或设置组件的站点。Gets or sets the site of the component.
public:
virtual property System::ComponentModel::ISite ^ Site { System::ComponentModel::ISite ^ get(); void set(System::ComponentModel::ISite ^ value); };
[System.ComponentModel.Browsable(false)]
public virtual System.ComponentModel.ISite Site { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Site : System.ComponentModel.ISite with get, set
Public Overridable Property Site As ISite
属性值
实现表示组件位置的 ISite 接口的对象。An object implementing the ISite interface that represents the site of the component.
实现
- 属性
注解
此属性的有效值-即值不为 null ,指示该组件已添加到容器中。A valid value for this property - that is, the value is not null, indicates that the component has been added to a container.
此属性的值为时 null ,该属性指示要从容器中删除该组件。When the value of this property is null, the property indicates that the component is being removed from a container. 但是,此属性不会从容器中移除组件。However, this property does not remove the component from the container.
继承者说明
若要更改此行为,请从该类继承,并在此属性中获取和设置。To change this behavior, inherit from this class and get and set in this property.