Skip to content

DefaultViewLocator.Unmap() method

Defined in

Type: DefaultViewLocator Namespace: ReactiveUI.Binding Assembly: ReactiveUI.Binding.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Overloads

  • 1. public bool Unmap<TViewModel>() where TViewModel : class
  • 2. public bool Unmap<TViewModel>(string? contract) where TViewModel : class

1. Overload

public bool Unmap<TViewModel>() where TViewModel : class

View source

Summary: Removes an explicit view mapping for a view model type.

Type parameters

NameDescription
TViewModelThe view model type.

Returns: bool -- true if the mapping was removed; otherwise, false.

2. Overload

public bool Unmap<TViewModel>(string? contract) where TViewModel : class

View source

Summary: Removes an explicit view mapping for a view model type.

Type parameters

NameDescription
TViewModelThe view model type.

Parameters

NameTypeDescription
contractstring?A contract string for named registrations.

Returns: bool -- true if the mapping was removed; otherwise, false.