Sdílet prostřednictvím


MvcAreaRouteBuilderExtensions.MapAreaRoute Metoda

Definice

Přetížení

MapAreaRoute(IRouteBuilder, String, String, String)

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými namea areaNametemplate.

MapAreaRoute(IRouteBuilder, String, String, String, Object)

Přidá trasu do IRouteBuilder s danou oblastí MVC se zadanými name, areaName, templatea defaults.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými name, areaName, template, defaultsa constraints.

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými name, areaName, , templatedefaults, constraintsa dataTokens.

MapAreaRoute(IRouteBuilder, String, String, String)

Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými namea areaNametemplate.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string? template);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String) As IRouteBuilder

Parametry

routeBuilder
IRouteBuilder

Chcete-li IRouteBuilder přidat trasu do.

name
String

Název trasy.

areaName
String

Název oblasti MVC.

template
String

Vzor adresy URL trasy.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

MapAreaRoute(IRouteBuilder, String, String, String, Object)

Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs

Přidá trasu do IRouteBuilder s danou oblastí MVC se zadanými name, areaName, templatea defaults.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string? template, object? defaults);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object) As IRouteBuilder

Parametry

routeBuilder
IRouteBuilder

Chcete-li IRouteBuilder přidat trasu do.

name
String

Název trasy.

areaName
String

Název oblasti MVC.

template
String

Vzor adresy URL trasy.

defaults
Object

Objekt, který obsahuje výchozí hodnoty parametrů trasy. Vlastnosti objektu představují názvy a hodnoty výchozích hodnot.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)

Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými name, areaName, template, defaultsa constraints.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults, System::Object ^ constraints);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string? template, object? defaults, object? constraints);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object, constraints As Object) As IRouteBuilder

Parametry

routeBuilder
IRouteBuilder

Chcete-li IRouteBuilder přidat trasu do.

name
String

Název trasy.

areaName
String

Název oblasti MVC.

template
String

Vzor adresy URL trasy.

defaults
Object

Objekt, který obsahuje výchozí hodnoty parametrů trasy. Vlastnosti objektu představují názvy a hodnoty výchozích hodnot.

constraints
Object

Objekt, který obsahuje omezení trasy. Vlastnosti objektu představují názvy a hodnoty omezení.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro

MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)

Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs
Zdroj:
MvcAreaRouteBuilderExtensions.cs

Přidá trasu IRouteBuilder do s danou oblastí MVC se zadanými name, areaName, , templatedefaults, constraintsa dataTokens.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::IRouteBuilder ^ MapAreaRoute(Microsoft::AspNetCore::Routing::IRouteBuilder ^ routeBuilder, System::String ^ name, System::String ^ areaName, System::String ^ template, System::Object ^ defaults, System::Object ^ constraints, System::Object ^ dataTokens);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string template, object defaults, object constraints, object dataTokens);
public static Microsoft.AspNetCore.Routing.IRouteBuilder MapAreaRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string areaName, string? template, object? defaults, object? constraints, object? dataTokens);
static member MapAreaRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * string * obj * obj * obj -> Microsoft.AspNetCore.Routing.IRouteBuilder
<Extension()>
Public Function MapAreaRoute (routeBuilder As IRouteBuilder, name As String, areaName As String, template As String, defaults As Object, constraints As Object, dataTokens As Object) As IRouteBuilder

Parametry

routeBuilder
IRouteBuilder

Chcete-li IRouteBuilder přidat trasu do.

name
String

Název trasy.

areaName
String

Název oblasti MVC.

template
String

Vzor adresy URL trasy.

defaults
Object

Objekt, který obsahuje výchozí hodnoty parametrů trasy. Vlastnosti objektu představují názvy a hodnoty výchozích hodnot.

constraints
Object

Objekt, který obsahuje omezení trasy. Vlastnosti objektu představují názvy a hodnoty omezení.

dataTokens
Object

Objekt, který obsahuje tokeny dat pro trasu. Vlastnosti objektu představují názvy a hodnoty datových tokenů.

Návraty

Odkaz na tuto instanci po dokončení operace.

Platí pro