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)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Map ( _
app As IAppBuilder, _
pathMatch As String, _
configuration As Action(Of IAppBuilder) _
) As IAppBuilder
'Usage
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
)
[ExtensionAttribute]
public:
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
Parameters
- app
Type: IAppBuilder
- pathMatch
Type: System.String
The path to match
- 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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).