Control.ViewStateIgnoresCase 속성

정의

StateBag 개체가 대/소문자를 구분하는지 여부를 나타내는 값을 가져옵니다.

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

속성 값

Boolean

StateBag 인스턴스가 대/소문자를 구분하지 않으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

다음 예제에서는 반환할 속성을 재정의 ViewStateIgnoresCase 하는 방법을 보여 줍니다 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

설명

대/소문자를 고려하지 않고 뷰 상태를 저장하는 사용자 지정 서버 컨트롤을 만드는 경우 이 메서드를 재정의합니다. 동일한 키를 사용하지만 다른 대/소문자를 사용하여 여러 개체를 만들 때 속성과 ViewState 연결된 위치에 StateBag 저장할 수 있습니다.

적용 대상

추가 정보