ControllerEndpointRouteBuilderExtensions.MapFallbackToAreaController 메서드

정의

오버로드

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String)

파일 이름이 아닌 이름에 대한 요청을 가능한 가장 낮은 우선 순위와 일치시키는 특수한 RouteEndpointIEndpointRouteBuilder 를 에 추가합니다. 요청은 , controller및 와 area일치하는 action컨트롤러 엔드포인트로 라우팅됩니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String)

파일 이름이 아닌 이름에 대한 요청을 가능한 가장 낮은 우선 순위와 일치시키는 특수한 RouteEndpointIEndpointRouteBuilder 를 에 추가합니다. 요청은 , controller및 와 area일치하는 action컨트롤러 엔드포인트로 라우팅됩니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String)

파일 이름이 아닌 이름에 대한 요청을 가능한 가장 낮은 우선 순위와 일치시키는 특수한 RouteEndpointIEndpointRouteBuilder 를 에 추가합니다. 요청은 , controller및 와 area일치하는 action컨트롤러 엔드포인트로 라우팅됩니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapFallbackToAreaController(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ action, System::String ^ controller, System::String ^ area);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller, string area);
static member MapFallbackToAreaController : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * string * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapFallbackToAreaController (endpoints As IEndpointRouteBuilder, action As String, controller As String, area As String) As IEndpointConventionBuilder

매개 변수

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 경로를 추가할 입니다.

action
String

작업 이름입니다.

controller
String

컨트롤러 이름입니다.

area
String

영역 이름입니다.

반환

설명

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) 는 요청의 URL 경로에 파일 이름이 없고 다른 엔드포인트가 일치하지 않는 경우를 처리하기 위한 것입니다. 이는 동적 콘텐츠에 대한 요청을 SPA 프레임워크로 라우팅하는 동시에 존재하지 않는 파일에 대한 요청으로 인해 HTTP 404가 생성되도록 하는 데 편리합니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) 는 패턴을 {*path:nonfile}사용하여 엔드포인트를 등록합니다. 등록된 엔드포인트의 순서는 입니다 int.MaxValue.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) 는 라우팅을 다시 실행하지 않으며 다른 곳에 정의된 경로에 따라 경로 값을 생성하지 않습니다. 이 오버로드를 path 사용하는 경우 경로 값을 사용할 수 있습니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) 는 제공된 action, controller및 와 area일치하는 여러 작업 간에 명확하게 구분하려고 시도하지 않습니다. 여러 작업이 이러한 값과 일치하는 경우 결과는 구현이 정의됩니다.

적용 대상

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String)

파일 이름이 아닌 이름에 대한 요청을 가능한 가장 낮은 우선 순위와 일치시키는 특수한 RouteEndpointIEndpointRouteBuilder 를 에 추가합니다. 요청은 , controller및 와 area일치하는 action컨트롤러 엔드포인트로 라우팅됩니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapFallbackToAreaController(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, System::String ^ action, System::String ^ controller, System::String ^ area);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController (this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller, string area);
static member MapFallbackToAreaController : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * string * string * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapFallbackToAreaController (endpoints As IEndpointRouteBuilder, pattern As String, action As String, controller As String, area As String) As IEndpointConventionBuilder

매개 변수

endpoints
IEndpointRouteBuilder

IEndpointRouteBuilder 경로를 추가할 입니다.

pattern
String

경로 패턴입니다.

action
String

작업 이름입니다.

controller
String

컨트롤러 이름입니다.

area
String

영역 이름입니다.

반환

설명

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) 는 요청의 URL 경로에 파일 이름이 없고 다른 엔드포인트가 일치하지 않는 경우를 처리하기 위한 것입니다. 이는 동적 콘텐츠에 대한 요청을 SPA 프레임워크로 라우팅하는 동시에 존재하지 않는 파일에 대한 요청으로 인해 HTTP 404가 생성되도록 하는 데 편리합니다.

등록된 엔드포인트의 순서는 입니다 int.MaxValue.

이 오버로드는 제공된 pattern 축자를 사용합니다. 경로 contraint를 :nonfile 사용하여 정적 파일에 대한 요청을 제외합니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) 는 라우팅을 다시 실행하지 않으며 다른 곳에 정의된 경로에 따라 경로 값을 생성하지 않습니다. 이 오버로드를 사용하는 경우 일치 pattern 에서 제공하는 경로 값을 사용할 수 있습니다.

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) 는 제공된 action, controller및 와 area일치하는 여러 작업 간에 명확하게 구분하려고 시도하지 않습니다. 여러 작업이 이러한 값과 일치하는 경우 결과는 구현이 정의됩니다.

적용 대상