Share via


Control.ViewStateIgnoresCase Properti

Definisi

Mendapatkan nilai yang menunjukkan apakah StateBag objek tidak peka huruf besar/kecil.

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

Nilai Properti

trueStateBag jika instans tidak peka huruf besar/kecil; jika tidak, false. Defaultnya adalah false.

Atribut

Contoh

Contoh berikut menunjukkan cara mengambil ViewStateIgnoresCase alih properti untuk mengembalikan 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

Keterangan

Ambil alih metode ini jika Anda membuat kontrol server kustom yang menyimpan status tampilannya tanpa memperhitungkan kasus. Ketika Anda melakukannya beberapa objek dengan kunci yang sama, tetapi dengan casing yang berbeda, dapat disimpan di StateBag yang terkait dengan ViewState properti .

Berlaku untuk

Lihat juga