MapExtensions.Map Method (IAppBuilder, String, Action<IAppBuilder>)

If the request path starts with the given pathMatch, execute the app configured via configuration parameter instead of continuing to the next component in the pipeline.

Namespace:  Owin
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)


<ExtensionAttribute> _
Public Shared Function Map ( _
    app As IAppBuilder, _
    pathMatch As String, _
    configuration As Action(Of IAppBuilder) _
) As IAppBuilder
Dim app As IAppBuilder 
Dim pathMatch As String 
Dim configuration As Action(Of IAppBuilder)
Dim returnValue As IAppBuilder 

returnValue = app.Map(pathMatch, configuration)
public static IAppBuilder Map(
    this IAppBuilder app,
    string pathMatch,
    Action<IAppBuilder> configuration
static IAppBuilder^ Map(
    IAppBuilder^ app, 
    String^ pathMatch, 
    Action<IAppBuilder^>^ configuration
static member Map : 
        app:IAppBuilder * 
        pathMatch:string * 
        configuration:Action<IAppBuilder> -> IAppBuilder
public static function Map(
    app : IAppBuilder, 
    pathMatch : String, 
    configuration : Action<IAppBuilder>
) : IAppBuilder


  • app
    Type: IAppBuilder
  • configuration
    Type: System.Action<IAppBuilder>
    The branch to take for positive path matches

Return Value

Type: IAppBuilder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


MapExtensions Class

Map Overload

Owin Namespace