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 컨트롤 상태 요구 사항을 확인하는 것입니다.

반품

지정된 컨트롤 상태가 필요하면 .

설명

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

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

적용 대상

추가 정보