Skip to content

ViewModelRoutedViewHostMixins.ClearHistory(IUseNavigation) method

Defined in

Type: ViewModelRoutedViewHostMixins Namespace: ReactiveMarbles.ViewModel.Core Assembly: ReactiveMarbles.ViewModel.Core.dll

Applies to

net8.0, net8.0-android34.0, net8.0-ios17.2, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, net8.0-maccatalyst17.2, netstandard2.0, net462

Overloads

  • 1. public static IUseNavigation ClearHistory(this IUseNavigation @this)
  • 2. public static IUseHostedNavigation ClearHistory(this IUseHostedNavigation @this, string hostName = "")

1. Overload

public static IUseNavigation ClearHistory(this IUseNavigation @this)

View source

Summary: Clears the history.

Parameters

NameTypeDescription
this[IUseNavigation](#The dummy.

Returns: IUseNavigation -- Chainable host.

Exceptions

TypeCondition
System.ArgumentNullExceptionthis.
System.InvalidOperationExceptionNo navigation host registered, please ensure that the NavigationShell has a Name.

2. Overload

public static IUseHostedNavigation ClearHistory(this IUseHostedNavigation @this, string hostName = "")

View source

Summary: Clears the history.

Parameters

NameTypeDescription
this[IUseHostedNavigation](#The this.
hostName = ""stringName of the host.

Returns: IUseHostedNavigation -- Chainable host.

Exceptions

TypeCondition
System.InvalidOperationExceptionNo navigation host registered, please ensure that the NavigationShell has a Name.