Method SetParameter
SetParameter<T>(IRoutedViewModel<T>, T)
Associates a parameter with the specified view model.
Declaration
public static void SetParameter<T>(IRoutedViewModel<T> viewModel, T parameter) where T : notnull
Parameters
| Type | Name | Description |
|---|---|---|
| IRoutedViewModel<T> | viewModel | |
| T | parameter |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | A parameter has already been associated with the view model. |