Control.ViewStateIgnoresCase Propriedade

Definição

Obtém um valor que indica se o objeto StateBag não diferencia maiúsculas de minúsculas.Gets a value that indicates whether the StateBag object is case-insensitive.

protected:
 virtual property bool ViewStateIgnoresCase { bool get(); };
[System.ComponentModel.Browsable(false)]
protected virtual bool ViewStateIgnoresCase { get; }
[<System.ComponentModel.Browsable(false)>]
member this.ViewStateIgnoresCase : bool
Protected Overridable ReadOnly Property ViewStateIgnoresCase As Boolean

Valor da propriedade

Boolean

true se a instância StateBag não diferenciar maiúsculas de minúsculas; caso contrário, false.true if the StateBag instance is case-insensitive; otherwise, false. O padrão é false.The default is false.

Atributos

Exemplos

O exemplo a seguir demonstra como substituir a ViewStateIgnoresCase Propriedade a ser retornada true .The following example demonstrates how to override the ViewStateIgnoresCase property to return true.

// Override the ViewStateIgnoresCase property to allow the same
// entries with different casing to be stored in the control's
// ViewState property.
protected override bool ViewStateIgnoresCase
{
        get
        { 
                return true; 
        }
}
' Override the ViewStateIgnoresCase property to allow the same
' entries with different casing to be stored in the control's
' ViewState property.
Overrides Protected ReadOnly Property ViewStateIgnoresCase As Boolean
   Get
      Return True
   End Get
End Property

Comentários

Substitua esse método se você criar um controle de servidor personalizado que salva seu estado de exibição sem levar em conta o caso.Override this method if you create a custom server control that saves its view state without taking case into account. Quando você faz isso, vários objetos com a mesma chave, mas com maiúsculas e minúsculas diferentes, podem ser armazenados no StateBag associado à ViewState propriedade.When you do so multiple objects with the same key, but with different casing, can be stored in the StateBag associated with the ViewState property.

Aplica-se a

Confira também