MapExtensions.Map Methode

Definition

Überlädt

Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

Map(IApplicationBuilder, String, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

Map(IApplicationBuilder, PathString, Boolean, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

Map(IApplicationBuilder, PathString, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ Map(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString pathMatch, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configuration);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathMatch, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configuration);
static member Map : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function Map (app As IApplicationBuilder, pathMatch As PathString, configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder

Parameter

pathMatch
PathString

Der abzugleichende Anforderungspfad.

configuration
Action<IApplicationBuilder>

Der Branch, der für positive Pfad-Übereinstimmungen verwendet werden soll.

Gibt zurück

Die IApplicationBuilder-Instanz.

Gilt für:

Map(IApplicationBuilder, String, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathMatch, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configuration);
static member Map : Microsoft.AspNetCore.Builder.IApplicationBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function Map (app As IApplicationBuilder, pathMatch As String, configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder

Parameter

pathMatch
String

Der abzugleichende Anforderungspfad.

configuration
Action<IApplicationBuilder>

Der Branch, der für positive Pfad-Übereinstimmungen verwendet werden soll.

Gibt zurück

Die IApplicationBuilder-Instanz.

Gilt für:

Map(IApplicationBuilder, PathString, Boolean, Action<IApplicationBuilder>)

Verzweigt die Anforderungspipeline basierend auf Übereinstimmungen des angegebenen Anforderungspfads. Wenn der Anforderungspfad mit dem angegebenen Pfad beginnt, wird der Branch ausgeführt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ Map(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::PathString pathMatch, bool preserveMatchedPathSegment, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configuration);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder Map (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.PathString pathMatch, bool preserveMatchedPathSegment, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configuration);
static member Map : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.PathString * bool * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function Map (app As IApplicationBuilder, pathMatch As PathString, preserveMatchedPathSegment As Boolean, configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder

Parameter

pathMatch
PathString

Der abzugleichende Anforderungspfad.

preserveMatchedPathSegment
Boolean

Wenn false, wird der übereinstimmende Pfad aus Request.Path entfernt und zu Request.PathBase hinzugefügt.

configuration
Action<IApplicationBuilder>

Der Branch, der für positive Pfad-Übereinstimmungen verwendet werden soll.

Gibt zurück

Die IApplicationBuilder-Instanz.

Gilt für: