ServiceLocatorMixins.GetView(IServiceLocator, string?) method¶
Defined in
Type: ServiceLocatorMixins
Namespace: ReactiveMarbles.Locator
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 IAmViewFor? GetView<T>(this IServiceLocator serviceLocator, string? contract = null) where T : class, IRxNavBase - 2.
public static IAmViewFor? GetView(this IServiceLocator serviceLocator, IRxNavBase viewModel)
1. Overload¶
public static IAmViewFor? GetView<T>(this IServiceLocator serviceLocator, string? contract = null) where T : class, IRxNavBase
Summary: Gets the service.
Type parameters
| Name | Description |
|---|---|
T | The Type. |
Parameters
| Name | Type | Description |
|---|---|---|
serviceLocator | [IServiceLocator](# | The service locator. |
contract = null | string? | The contract. |
Returns: IAmViewFor? -- An instance.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | serviceLocator. |
2. Overload¶
public static IAmViewFor? GetView(this IServiceLocator serviceLocator, IRxNavBase viewModel)
Summary: Gets the service.
Parameters
| Name | Type | Description |
|---|---|---|
serviceLocator | [IServiceLocator](# | The service locator. |
viewModel | [IRxNavBase](# | The view model. |
Returns: IAmViewFor? -- An instance.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | serviceLocator. |