MarshalByValueComponent.Site Property
Gets or sets the site of the component.
[Visual Basic] Public Overridable Property Site As ISite Implements _ IComponent.Site [C#] public virtual ISite Site {get; set;} [C++] public: __property virtual ISite* get_Site(); public: __property virtual void set_Site(ISite*); [JScript] public function get Site() : ISite; public function set Site(ISite);
Property Value
An object implementing the ISite interface that represents the site of the component.
Implements
Remarks
A valid value for this property - that is, the value is not a null reference (Nothing in Visual Basic), indicates that the component has been added to a container.
When the value of this property is a null reference (Nothing), the property indicates that the component is being removed from a container. However, this property does not remove the component from the container.
Notes to Inheritors: To change this behavior, inherit from this class and get and set in this property.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
MarshalByValueComponent Class | MarshalByValueComponent Members | System.ComponentModel Namespace | MarshalByValueComponent | ISite