Control.GetUniqueIDRelativeTo(Control) Método

Definição

Retorna a parte prefixada da propriedade UniqueID do controle especificado.Returns the prefixed portion of the UniqueID property of the specified control.

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

Um controle que está em um contêiner de nomenclatura.A control that is within a naming container.

Retornos

String

A parte prefixada da propriedade UniqueID do controle especificado.The prefixed portion of the UniqueID property of the specified control.

Exceções

A propriedade NamingContainer de control é null.The NamingContainer property of control is null.

control é null.control is null.

Comentários

A UniqueID propriedade de um controle é gerada pela adição de um prefixo à propriedade do controle ID .The UniqueID property of a control is generated by adding a prefix to the control's ID property. O prefixo é composto pela UniqueID Propriedade do contêiner de nomeação do controle concatenado com um caractere separador.The prefix is composed of the UniqueID property of the control's naming container concatenated with a separator character. Se o contêiner de nomenclatura for a página, não haverá nenhum prefixo.If the naming container is the page, there is no prefix. Esse método retorna a cadeia de caracteres de prefixo.This method returns the prefix string. Se não houver nenhuma cadeia de caracteres de prefixo, ele retornará o UniqueID valor do controle.If there is no prefix string, it returns the UniqueID value of the control.

Aplica-se a