StopRoutingHandler 클래스

정의

ASP.NET 라우팅이 URL 패턴에 대한 요청을 처리하지 않도록 지정하는 방법을 제공합니다.

public ref class StopRoutingHandler : System::Web::Routing::IRouteHandler
public class StopRoutingHandler : System.Web.Routing.IRouteHandler
type StopRoutingHandler = class
    interface IRouteHandler
Public Class StopRoutingHandler
Implements IRouteHandler
상속
StopRoutingHandler
구현

예제

다음 예제에서는 .axd 요청에 대 한 요청을 처리 하는 라우팅을 방지 하는 방법을 보여 줍니다.

routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
routes.Add(New Route("{resource}.axd/{*pathInfo}", New StopRoutingHandler()))

설명

클래스 StopRoutingHandler 를 사용하면 ASP.NET 라우팅이 특정 URL 요청을 처리하지 않도록 지정할 수 있습니다. 경로를 정의하고 해당 경로의 패턴을 처리하는 데 클래스를 사용하도록 지정하여 StopRoutingHandler 라우팅이 특정 요청을 처리하지 못하도록 방지합니다. 개체에서 요청을 처리할 StopRoutingHandler 때 개체 StopRoutingHandler 는 요청의 추가 처리를 경로로 차단합니다. 대신 요청은 ASP.NET 페이지, 웹 서비스 또는 기타 ASP.NET 엔드포인트로 처리됩니다.

생성자

StopRoutingHandler()

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

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetHttpHandler(RequestContext)

요청을 처리하는 개체를 반환합니다.

GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

IRouteHandler.GetHttpHandler(RequestContext)

요청을 처리하는 개체를 반환합니다.

적용 대상

추가 정보