BoundField.GetValue(Control) Método
Definição
Recupera o valor do campo associado ao objeto de BoundField.Retrieves the value of the field bound to the BoundField object.
protected:
virtual System::Object ^ GetValue(System::Web::UI::Control ^ controlContainer);
protected virtual object GetValue (System.Web.UI.Control controlContainer);
abstract member GetValue : System.Web.UI.Control -> obj
override this.GetValue : System.Web.UI.Control -> obj
Protected Overridable Function GetValue (controlContainer As Control) As Object
Parâmetros
- controlContainer
- Control
O contêiner para o valor do campo.The container for the field value.
Retornos
O valor do campo associado ao BoundField.The value of the field bound to the BoundField.
Exceções
O contêiner especificado pelo parâmetro controlContainer é null.The container specified by the controlContainer parameter is null.
- ou --or-
O contêiner especificado pelo parâmetro controlContainer não tem um item de dados.The container specified by the controlContainer parameter does not have a data item.
- ou --or- O campo de dados não foi encontrado.The data field was not found.
Comentários
O GetValue método é um método auxiliar usado para determinar o valor de um campo.The GetValue method is a helper method used to determine the value of a field. Se o BoundField objeto estiver sendo exibido em um designer e o valor do campo não puder ser determinado em tempo de design, o valor retornado do GetDesignTimeValue método será retornado em vez do valor real do campo.If the BoundField object is being displayed in a designer and the field value cannot be determined at design time, the value returned from the GetDesignTimeValue method is returned instead of the actual field value.
Observação
Esse método é usado principalmente por desenvolvedores de controle.This method is used primarily by control developers.
Notas aos Herdeiros
Ao estender a BoundField classe, você pode substituir esse método para fornecer uma rotina personalizada para determinar o valor de um campo.When extending the BoundField class, you can override this method to provide a custom routine to determine a field's value.