다음을 통해 공유


HttpHandlerAction 생성자

정의

HttpHandlerAction 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
HttpHandlerAction(String, String, String)

전달된 매개 변수를 사용하여 클래스의 HttpHandlerAction 새 인스턴스를 초기화합니다.

HttpHandlerAction(String, String, String, Boolean)

전달된 매개 변수를 사용하여 클래스의 HttpHandlerAction 새 인스턴스를 초기화합니다.

HttpHandlerAction(String, String, String)

전달된 매개 변수를 사용하여 클래스의 HttpHandlerAction 새 인스턴스를 초기화합니다.

public:
 HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb);
public HttpHandlerAction(string path, string type, string verb);
new System.Web.Configuration.HttpHandlerAction : string * string * string -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String)

매개 변수

path
String

URL 경로입니다 HttpHandlerAction .

type
String

버전, 문화권 및 공개 키 토큰으로 구성된 쉼표로 구분된 클래스/어셈블리 조합입니다.

verb
String

HTTP 동사의 쉼표로 구분된 목록입니다(예: "GET, PUT, POST").

설명

HttpHandlerAction 생성자는 코드에서 직접 사용할 수 없습니다. ASP.NET 구성 시스템에서 호출됩니다. 속성을 사용하여 클래스의 HttpHandlerAction 인스턴스를 Handlers 가져옵니다.

적용 대상

HttpHandlerAction(String, String, String, Boolean)

전달된 매개 변수를 사용하여 클래스의 HttpHandlerAction 새 인스턴스를 초기화합니다.

public:
 HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb, bool validate);
public HttpHandlerAction(string path, string type, string verb, bool validate);
new System.Web.Configuration.HttpHandlerAction : string * string * string * bool -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String, validate As Boolean)

매개 변수

path
String

URL 경로입니다 HttpHandlerAction .

type
String

버전, 문화권 및 공개 키 토큰으로 구성된 쉼표로 구분된 클래스/어셈블리 조합입니다.

verb
String

HTTP 동사의 쉼표로 구분된 목록입니다(예: "GET, PUT, POST").

validate
Boolean

true유효성 검사를 허용하려면 다음을 수행합니다. 그렇지 않으면 . false 경우 false실제 일치 요청이 올 때까지 ASP.NET 클래스를 로드하려고 시도하지 않으므로 오류가 지연되지만 시작 시간이 향상될 수 있습니다.

예제

다음 코드 예제에서는 개체를 만드는 HttpHandlerAction 방법을 보여줍니다.

// Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction(
    "Calculator.custom", 
    "Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", 
    "GET", 
    true));
' Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction( _
    "Calculator.custom", _
    "Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", _
    "GET", _
    true))

설명

HttpHandlerAction 생성자는 코드에서 직접 사용할 수 없습니다. ASP.NET 구성 시스템에서 호출됩니다. 속성을 사용하여 클래스의 HttpHandlerAction 인스턴스를 Handlers 가져옵니다.

적용 대상