Control.Site Control.Site Control.Site Control.Site Property

定义

获取容器信息,该容器在呈现于设计图面上时承载当前控件。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.

实现

异常

注解

站点将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.

适用于

另请参阅