다음을 통해 공유


RequestDelegateRouteBuilderExtensions.MapRoute 메서드

정의

오버로드

MapRoute(IRouteBuilder, String, RequestDelegate)

지정된 template, 및 handler에 대한 경로를 IRouteBuilder 에 추가합니다.

MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

지정된 template, 및 action에 대한 경로를 IRouteBuilder 에 추가합니다.

MapRoute(IRouteBuilder, String, RequestDelegate)

Source:
RequestDelegateRouteBuilderExtensions.cs
Source:
RequestDelegateRouteBuilderExtensions.cs
Source:
RequestDelegateRouteBuilderExtensions.cs

지정된 template, 및 handler에 대한 경로를 IRouteBuilder 에 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ template, Microsoft::AspNetCore::Http::RequestDelegate ^ handler);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Microsoft.AspNetCore.Http.RequestDelegate handler);
static member MapRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * Microsoft.AspNetCore.Http.RequestDelegate -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapRoute (builder As IRouteBuilder, template As String, handler As RequestDelegate) As IRouteBuilder

매개 변수

template
String

경로 템플릿입니다.

handler
RequestDelegate

RequestDelegate 경로 처리기입니다.

반환

이 작업이 완료된 후 에 대한 참조 builder 입니다.

적용 대상

MapRoute(IRouteBuilder, String, Action<IApplicationBuilder>)

지정된 template, 및 action에 대한 경로를 IRouteBuilder 에 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ builder, System::String ^ template, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ action);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder builder, string template, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> action);
static member MapRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapRoute (builder As IRouteBuilder, template As String, action As Action(Of IApplicationBuilder)) As IRouteBuilder

매개 변수

template
String

경로 템플릿입니다.

action
Action<IApplicationBuilder>

에 적용할 작업입니다 IApplicationBuilder.

반환

이 작업이 완료된 후 에 대한 참조 builder 입니다.

적용 대상