Page.RequiresControlState(Control) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 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
매개 변수
반품
설명
컨트롤 상태는 웹 서버 컨트롤이 작동하는 데 필요한 중요한 뷰 상태 데이터로 구성된 개체입니다. 일반 뷰 상태와는 별개의 개체에 포함됩니다.
컨트롤 상태를 사용하는 사용자 지정 컨트롤은 컨트롤 상태를 저장하기 전에 메서드를 RegisterRequiresControlState 호출해야 합니다. 이 메서드를 RequiresControlState 사용하여 컨트롤 상태가 필요한 것으로 페이지에 등록된 컨트롤을 확인합니다.