Gets or sets the ISite of the Component.
<BrowsableAttribute(False)> _ Public Overridable Property Site As ISite
Dim instance As Component Dim value As ISite value = instance.Site instance.Site = value
[BrowsableAttribute(false)] public virtual ISite Site { get; set; }
[BrowsableAttribute(false)] public: virtual property ISite^ Site { ISite^ get (); void set (ISite^ value); }
public function get Site () : ISite public function set Site (value : ISite)
A Component will have an ISite if it has been added to an IContainer and the IContainer assigns an ISite to it. The IContainer is responsible for assigning the ISite to the Component. Changing the value of the component's ISite does not necessarily change the name of the site the Component is assigned to. The Site property should be set only by an IContainer.
The property value is nullNothingnullptra null reference (Nothing in Visual Basic) if the Component is removed from its IContainer. Assigning nullNothingnullptra null reference (Nothing in Visual Basic) to this property does not necessarily remove the Component from the IContainer.
A Component might or might not have a name. If a Component is given a name, the name must be unique among other Component objects within its IContainer. The ISite stores the name of the Component; therefore, you can only name a Component if it has an ISite associated with it.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune