Component.Site Propiedad
Definición
public:
virtual property System::ComponentModel::ISite ^ Site { System::ComponentModel::ISite ^ get(); void set(System::ComponentModel::ISite ^ value); };
public virtual System.ComponentModel.ISite Site { get; set; }
[System.ComponentModel.Browsable(false)]
public virtual System.ComponentModel.ISite Site { get; set; }
member this.Site : System.ComponentModel.ISite with get, set
[<System.ComponentModel.Browsable(false)>]
member this.Site : System.ComponentModel.ISite with get, set
Public Overridable Property Site As ISite
Valor de propiedad
La interfaz ISite asociada al objeto Component, o null
si el objeto Component no está encapsulado en una interfaz IContainer, si el objeto Component no tiene una interfaz ISite asociada, o si el objeto Component se quita de su interfaz IContainer.The ISite associated with the Component, or null
if the Component is not encapsulated in an IContainer, the Component does not have an ISite associated with it, or the Component is removed from its IContainer.
Implementaciones
- Atributos
Comentarios
A tendrá Component un si se ha ISite agregado a un IContainer y el le IContainer asigna un ISite .A Component will have an ISite if it has been added to an IContainer and the IContainer assigns an ISite to it. El IContainer es responsable de asignar ISite al Component .The IContainer is responsible for assigning the ISite to the Component. Al cambiar el valor de del componente, ISite no se cambia necesariamente el nombre del sitio Component al que está asignado.Changing the value of the component's ISite does not necessarily change the name of the site the Component is assigned to. SiteSolo debe establecer la propiedad IContainer .The Site property should be set only by an IContainer.
El valor de la propiedad es null
si Component se quita de su IContainer .The property value is null
if the Component is removed from its IContainer. Si se asigna null
a esta propiedad, no se quita necesariamente Component de la IContainer .Assigning null
to this property does not necessarily remove the Component from the IContainer.
ComponentPuede tener o no un nombre.A Component might or might not have a name. Si Component se le asigna un nombre, el nombre debe ser único entre otros Component objetos dentro de su IContainer .If a Component is given a name, the name must be unique among other Component objects within its IContainer. ISiteAlmacena el nombre del Component ; por lo tanto, solo puede asignar un nombre a Component si tiene un ISite asociado.The ISite stores the name of the Component; therefore, you can only name a Component if it has an ISite associated with it.