MvcAreaRouteBuilderExtensions.MapAreaRoute Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
MapAreaRoute(IRouteBuilder, String, String, String) |
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , |
MapAreaRoute(IRouteBuilder, String, String, String, Object) |
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , |
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object) |
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , |
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object) |
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , |
MapAreaRoute(IRouteBuilder, String, String, String)
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , areaName
dan template
yang ditentukanname
.
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
Parameter
- routeBuilder
- IRouteBuilder
IRouteBuilder untuk menambahkan rute.
- name
- String
Nama rute.
- areaName
- String
Nama area MVC.
- template
- String
Pola URL rute.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.
Berlaku untuk
MapAreaRoute(IRouteBuilder, String, String, String, Object)
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , areaName
template
, dan defaults
yang ditentukanname
.
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
Parameter
- routeBuilder
- IRouteBuilder
IRouteBuilder untuk menambahkan rute.
- name
- String
Nama rute.
- areaName
- String
Nama area MVC.
- template
- String
Pola URL rute.
- defaults
- Object
Objek yang berisi nilai default untuk parameter rute. Properti objek mewakili nama dan nilai nilai default.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.
Berlaku untuk
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object)
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , areaName
, template
defaults
, dan constraints
yang ditentukanname
.
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
Parameter
- routeBuilder
- IRouteBuilder
IRouteBuilder untuk menambahkan rute.
- name
- String
Nama rute.
- areaName
- String
Nama area MVC.
- template
- String
Pola URL rute.
- defaults
- Object
Objek yang berisi nilai default untuk parameter rute. Properti objek mewakili nama dan nilai nilai default.
- constraints
- Object
Objek yang berisi batasan untuk rute. Properti objek mewakili nama dan nilai batasan.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.
Berlaku untuk
MapAreaRoute(IRouteBuilder, String, String, String, Object, Object, Object)
Menambahkan rute ke IRouteBuilder dengan area MVC yang diberikan dengan , , areaName
, defaults
template
, , constraints
dan dataTokens
yang ditentukanname
.
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
Parameter
- routeBuilder
- IRouteBuilder
IRouteBuilder untuk menambahkan rute.
- name
- String
Nama rute.
- areaName
- String
Nama area MVC.
- template
- String
Pola URL rute.
- defaults
- Object
Objek yang berisi nilai default untuk parameter rute. Properti objek mewakili nama dan nilai nilai default.
- constraints
- Object
Objek yang berisi batasan untuk rute. Properti objek mewakili nama dan nilai batasan.
- dataTokens
- Object
Objek yang berisi token data untuk rute. Properti objek mewakili nama dan nilai token data.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.