Control.Site 屬性

定義

當呈現在設計介面上時,取得裝載目前控制項之容器的資訊。Gets information about the container that hosts the current control when rendered on a design surface.

public:
 property System::ComponentModel::ISite ^ Site { System::ComponentModel::ISite ^ get(); void set(System::ComponentModel::ISite ^ value); };
[System.ComponentModel.Browsable(false)]
public System.ComponentModel.ISite Site { get; set; }
member this.Site : System.ComponentModel.ISite with get, set
Public Property Site As ISite

屬性值

ISite,包含裝載控制項之容器的資訊。An ISite that contains information about the container that the control is hosted in.

實作

屬性

例外狀況

此控制項為 Substitution 控制項。The control is a Substitution control.

備註

網站會將 Component 物件系結至 Container 物件,並啟用兩者之間的通訊。A site binds a Component object to a Container object and enables communication between the two. 它也會提供一種方法讓容器管理其元件。It also provides a way for the container to manage its components.

適用於

另請參閱