Condividi tramite


MvcAreaRouteBuilderExtensions.MapAreaRoute Metodo

Definizione

Overload

MapAreaRoute(IRouteBuilder, String, String, String)

Aggiunge una route all'oggetto con l'area IRouteBuilder MVC specificata con l'oggetto specificato nameareaName e template.

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

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto specificato name, areaName, templatee defaults.

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

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto , templatedefaultsnameareaNamee .constraints

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

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto , name, areaNamedefaultstemplate, constraints, e .dataTokens

MapAreaRoute(IRouteBuilder, String, String, String)

Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs

Aggiunge una route all'oggetto con l'area IRouteBuilder MVC specificata con l'oggetto specificato nameareaName e template.

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

Parametri

routeBuilder
IRouteBuilder

Oggetto IRouteBuilder da aggiungere alla route.

name
String

Nome della route.

areaName
String

Nome area MVC.

template
String

Modello URL della route.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a

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

Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto specificato name, areaName, templatee 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

Parametri

routeBuilder
IRouteBuilder

Oggetto IRouteBuilder da aggiungere alla route.

name
String

Nome della route.

areaName
String

Nome area MVC.

template
String

Modello URL della route.

defaults
Object

Oggetto che contiene valori predefiniti per i parametri di route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei valori predefiniti.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a

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

Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto , templatedefaultsnameareaNamee .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

Parametri

routeBuilder
IRouteBuilder

Oggetto IRouteBuilder da aggiungere alla route.

name
String

Nome della route.

areaName
String

Nome area MVC.

template
String

Modello URL della route.

defaults
Object

Oggetto che contiene valori predefiniti per i parametri di route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei valori predefiniti.

constraints
Object

Oggetto che contiene vincoli per la route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei vincoli.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a

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

Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs
Origine:
MvcAreaRouteBuilderExtensions.cs

Aggiunge una route all'oggetto IRouteBuilder con l'area MVC specificata con l'oggetto , name, areaNamedefaultstemplate, constraints, e .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

Parametri

routeBuilder
IRouteBuilder

Oggetto IRouteBuilder da aggiungere alla route.

name
String

Nome della route.

areaName
String

Nome area MVC.

template
String

Modello URL della route.

defaults
Object

Oggetto che contiene valori predefiniti per i parametri di route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei valori predefiniti.

constraints
Object

Oggetto che contiene vincoli per la route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei vincoli.

dataTokens
Object

Oggetto che contiene token di dati per la route. Le proprietà dell'oggetto rappresentano i nomi e i valori dei token di dati.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Si applica a