Control.Site Property

Definition

Gets information about the container that hosts the current control when rendered on a design surface.

C#
[System.ComponentModel.Browsable(false)]
public System.ComponentModel.ISite Site { get; set; }

Property Value

An ISite that contains information about the container that the control is hosted in.

Implements

Attributes

Exceptions

The control is a Substitution control.

Remarks

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.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also