CheckBoxList.FindControl(String, Int32) 메서드

정의

지정한 ID와 경로 오프셋을 사용하여 서버 컨트롤의 현재 명명 컨테이너를 검색합니다. FindControl(String, Int32) 메서드는 항상 CheckBoxList 개체를 반환합니다.

protected:
 override System::Web::UI::Control ^ FindControl(System::String ^ id, int pathOffset);
protected override System.Web.UI.Control FindControl (string id, int pathOffset);
override this.FindControl : string * int -> System.Web.UI.Control
Protected Overrides Function FindControl (id As String, pathOffset As Integer) As Control

매개 변수

id
String

찾을 컨트롤의 식별자입니다.

pathOffset
Int32

페이지 컨트롤 계층 구조에서 명명 컨테이너에 도달하는 데 필요한 컨트롤 개수입니다.

반환

Control

현재 CheckBoxList입니다.

설명

FindControl 메서드는 주로 클래스에서 파생되는 사용자 지정 컨트롤의 컨트롤 개발자가 CheckBoxList 사용합니다.

메서드는 FindControl 기본 Control 클래스의 FindControl 메서드를 재정의합니다. 이 버전의 FindControl 메서드를 재정의해서는 안됩니다.

적용 대상

추가 정보