System.ComponentModel.Component.Site Property

Gets or sets the System.ComponentModel.ISite of the System.ComponentModel.Component.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual ISite Site { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.ComponentModel.Component will have an System.ComponentModel.ISite if it has been added to an System.ComponentModel.IContainer and the System.ComponentModel.IContainer assigns an System.ComponentModel.ISite to it. The System.ComponentModel.IContainer is responsible for assigning the System.ComponentModel.ISite to the System.ComponentModel.Component. Changing the value of the component's System.ComponentModel.ISite does not necessarily change the name of the site the System.ComponentModel.Component is assigned to. The Component.Site property should be set only by an System.ComponentModel.IContainer.

The property value is null if the System.ComponentModel.Component is removed from its System.ComponentModel.IContainer. Assigning null to this property does not necessarily remove the System.ComponentModel.Component from the System.ComponentModel.IContainer.

A System.ComponentModel.Component might or might not have a name. If a System.ComponentModel.Component is given a name, the name must be unique among other System.ComponentModel.Component objects within its System.ComponentModel.IContainer. The System.ComponentModel.ISite stores the name of the System.ComponentModel.Component; therefore, you can only name a System.ComponentModel.Component if it has an System.ComponentModel.ISite associated with it.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0