Table of Contents

Class RouteRegistration<TViewModel>

Namespace
Artemis.UI.Shared.Routing
Assembly
Artemis.UI.Shared.dll

Represents a registration for a route and its associated view model.

public class RouteRegistration<TViewModel> : IRouterRegistration where TViewModel : RoutableScreen

Type Parameters

TViewModel

The type of the view model associated with the route.

Inheritance
object
RouteRegistration<TViewModel>
Implements

Constructors

RouteRegistration(string)

Initializes a new instance of the RouteRegistration<TViewModel> class.

public RouteRegistration(string path)

Parameters

path string

The path of the route.

RouteRegistration(string, List<IRouterRegistration>)

Initializes a new instance of the RouteRegistration<TViewModel> class.

public RouteRegistration(string path, List<IRouterRegistration> children)

Parameters

path string

The path of the route.

children List<IRouterRegistration>

The children of the route.

Properties

Children

Gets or sets the child registrations of this route.

public List<IRouterRegistration> Children { get; set; }

Property Value

List<IRouterRegistration>

Route

Gets the route associated with this registration.

public Route Route { get; }

Property Value

Route

ViewModel

Gets the type of the view model associated with the route.

public Type ViewModel { get; }

Property Value

Type

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.