Aracılığıyla paylaş


Control.ViewStateIgnoresCase Özellik

Tanım

Nesnenin StateBag büyük/küçük harfe duyarsız olup olmadığını gösteren bir değer alır.

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

Özellik Değeri

true örnek büyük StateBag /küçük harfe duyarsızsa; değilse, false. Varsayılan değer: false.

Öznitelikler

Örnekler

Aşağıdaki örnekte, döndürülecek trueözelliğinin nasıl geçersiz kılıneceği ViewStateIgnoresCase gösterilmektedir.

// 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

Açıklamalar

Görünüm durumunu hesaba katmadan kaydeden özel bir sunucu denetimi oluşturursanız bu yöntemi geçersiz kılın. Aynı anahtara sahip ancak farklı büyük/küçük harfe sahip birden çok nesne yaptığınızda, özelliğiyle ViewState ilişkili içinde StateBag depolanabilir.

Şunlara uygulanır

Ayrıca bkz.