Control.ViewStateIgnoresCase Özellik

Tanım

Nesnenin StateBag büyük/küçük harfe duyarlı 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

Boolean

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

Öznitelikler

Örnekler

Aşağıdaki örnekte, özelliğinin ViewStateIgnoresCase döndürülecek trueşekilde nasıl geçersiz kılınacakları 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. Bunu yaptığınızda, aynı anahtarla birden çok nesne, ancak farklı büyük/küçük harfle, özelliğiyle ViewState ilişkili içinde StateBag depolanabilir.

Şunlara uygulanır

Ayrıca bkz.