Struct BeforeRouterResult
Before navigation information
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Neutronium.BuildingBlocks.Application.Navigation
Assembly: Neutronium.BuildingBlocks.Application.dll
Syntax
public struct BeforeRouterResult
Properties
| Improve this Doc View SourceContinue
Cancel navigation if false
Declaration
public bool Continue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Redirect
Redirect route if not null
Declaration
public string Redirect { get; }
Property Value
Type | Description |
---|---|
System.String |
To
Targeted ViewModel
Declaration
public object To { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceCancel()
Instance used to cancel navigation
Declaration
public static BeforeRouterResult Cancel()
Returns
Type | Description |
---|---|
BeforeRouterResult |
CreateRedirect(String)
Instance used to redirect the navigation
Declaration
public static BeforeRouterResult CreateRedirect(string routeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | routeName |
Returns
Type | Description |
---|---|
BeforeRouterResult |
Ok(Object)
Instance used to navigate to the given ViewModel
Declaration
public static BeforeRouterResult Ok(object viewModel)
Parameters
Type | Name | Description |
---|---|---|
System.Object | viewModel |
Returns
Type | Description |
---|---|
BeforeRouterResult |