IComponent.Site 属性

定义

获取或设置与 ISite 关联的 IComponentGets or sets the ISite associated with the IComponent.

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

属性值

与组件关联的 ISite 对象;或者在组件不具有站点的情况下为 nullThe ISite object associated with the component; or null, if the component does not have a site.

注解

站点还可以充当容器特定的每个组件的信息(例如组件名称)的存储库。Sites can also serve as a repository for container-specific, per-component information, such as the component name.

适用于

另请参阅