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; }
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.

適用於

另請參閱