PageParserFilter.AllowControl(Type, ControlBuilder) 메서드

정의

지정한 컨트롤 형식이 이 페이지에 허용되는지 여부를 나타내는 값을 가져옵니다.

public:
 virtual bool AllowControl(Type ^ controlType, System::Web::UI::ControlBuilder ^ builder);
public virtual bool AllowControl(Type controlType, System.Web.UI.ControlBuilder builder);
abstract member AllowControl : Type * System.Web.UI.ControlBuilder -> bool
override this.AllowControl : Type * System.Web.UI.ControlBuilder -> bool
Public Overridable Function AllowControl (controlType As Type, builder As ControlBuilder) As Boolean

매개 변수

controlType
Type

추가할 컨트롤의 형식을 나타내는 A Type 입니다.

builder
ControlBuilder

ControlBuilder 지정된 형식의 컨트롤을 빌드하는 데 사용되는 형식입니다.

반품

컨트롤을 현재 페이지와 함께 사용할 수 있으면 입니다. 그렇지 않으면 . 기본값은 false입니다.

설명

클래스는 TemplateParser 구문 분석 시간에 페이지에서 컨트롤이 허용되는지 여부를 확인합니다. 페이지에서 특정 컨트롤을 AllowControl 거부하거나 허용하도록 메서드를 재정의합니다.

적용 대상