Page.RequiresControlState(Control) 메서드

정의

지정된 Control 개체가 등록되어 컨트롤 상태 관리에 참여하는지 여부를 결정합니다.

public:
 bool RequiresControlState(System::Web::UI::Control ^ control);
public bool RequiresControlState (System.Web.UI.Control control);
member this.RequiresControlState : System.Web.UI.Control -> bool
Public Function RequiresControlState (control As Control) As Boolean

매개 변수

control
Control

컨트롤 상태 요구 사항을 확인하는 Control입니다.

반환

Boolean

true 지정된 Control 컨트롤 상태가 필요하면 이고, false그렇지 않으면 .입니다.

설명

컨트롤 상태는 웹 서버 컨트롤이 작동해야 하는 중요한 뷰 상태 데이터로 구성된 개체입니다. 는 일반 뷰 상태와는 별개의 개체에 포함됩니다.

컨트롤 상태를 사용하는 사용자 지정 컨트롤은 컨트롤 상태를 저장하기 전에 메서드를 RegisterRequiresControlState 호출해야 합니다. 이 메서드를 RequiresControlState 사용하여 컨트롤 상태가 필요한 페이지로 등록된 컨트롤을 확인합니다.

적용 대상

추가 정보