UIServiceContainerExtensions.GetService<T>(IUIServiceContainer, String) Method
Searches for a service with the specified type in the specified UIServiceContainer.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.WinUI.Mvvm.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public static T GetService<T>(
this IUIServiceContainer container,
string key = null
)
where T : class
#Parameters
Name | Type | Description |
---|---|---|
container | IUIService |
An instance of the IUIService |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
key | String | null | A service identifier. |
#Type Parameters
Name | Description |
---|---|
T | A service type. |
#Returns
Type | Description |
---|---|
T | A service instance. |
See Also