Share via


Routing.RegisterRoute Method

Definition

Overloads

Name Description
RegisterRoute(String, RouteFactory)

Registers a route with a custom factory for creating navigation content.

RegisterRoute(String, Type)

Registers a route with a type that will be instantiated for navigation.

RegisterRoute(String, RouteFactory)

Source:
Routing.cs
Source:
Routing.cs
Source:
Routing.cs
Source:
Routing.cs

Registers a route with a custom factory for creating navigation content.

public:
 static void RegisterRoute(System::String ^ route, Microsoft::Maui::Controls::RouteFactory ^ factory);
public static void RegisterRoute(string route, Microsoft.Maui.Controls.RouteFactory factory);
static member RegisterRoute : string * Microsoft.Maui.Controls.RouteFactory -> unit
Public Shared Sub RegisterRoute (route As String, factory As RouteFactory)

Parameters

route
String

The route string to register.

factory
RouteFactory

The factory that creates elements for this route.

Applies to

RegisterRoute(String, Type)

Source:
Routing.cs
Source:
Routing.cs
Source:
Routing.cs
Source:
Routing.cs

Registers a route with a type that will be instantiated for navigation.

public:
 static void RegisterRoute(System::String ^ route, Type ^ type);
public static void RegisterRoute(string route, Type type);
static member RegisterRoute : string * Type -> unit
Public Shared Sub RegisterRoute (route As String, type As Type)

Parameters

route
String

The route string to register.

type
Type

The type to instantiate when navigating to this route.

Applies to