Control.GetUniqueIDRelativeTo(Control) Método
Definición
public:
System::String ^ GetUniqueIDRelativeTo(System::Web::UI::Control ^ control);
public string GetUniqueIDRelativeTo (System.Web.UI.Control control);
member this.GetUniqueIDRelativeTo : System.Web.UI.Control -> string
Public Function GetUniqueIDRelativeTo (control As Control) As String
Parámetros
- control
- Control
Control que está en un contenedor de nomenclatura.A control that is within a naming container.
Devoluciones
Parte correspondiente al prefijo de la propiedad UniqueID del control especificado.The prefixed portion of the UniqueID property of the specified control.
Excepciones
La propiedad NamingContainer de control
es null
.The NamingContainer property of control
is null
.
control
es null
.control
is null
.
Comentarios
La UniqueID propiedad de un control se genera agregando un prefijo a la propiedad del control ID .The UniqueID property of a control is generated by adding a prefix to the control's ID property. El prefijo se compone de la UniqueID propiedad del contenedor de nomenclatura del control concatenado con un carácter separador.The prefix is composed of the UniqueID property of the control's naming container concatenated with a separator character. Si el contenedor de nomenclatura es la página, no hay ningún prefijo.If the naming container is the page, there is no prefix. Este método devuelve la cadena de prefijo.This method returns the prefix string. Si no hay ninguna cadena de prefijo, devuelve el UniqueID valor del control.If there is no prefix string, it returns the UniqueID value of the control.