Back to Devexpress

IUIServiceContainer.GetService(Type, String) Method

maui-devexpress-dot-maui-dot-mvvm-dot-iuiservicecontainer-dot-getservice-x28-system-dot-type-system-dot-string-x29.md

latest1.2 KB
Original Source

IUIServiceContainer.GetService(Type, String) Method

Gets a registered UI service by its type and key in the container.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
object GetService(
    Type type,
    string key = null
)

Parameters

NameTypeDescription
typeType

The type of the registered UI service.

|

Optional Parameters

NameTypeDefaultDescription
keyStringnull

The key of the registered UI service.

|

Returns

TypeDescription
System.Object

The service object that has specified type and key. If no service match is found, the method returns null.

|

See Also

IUIServiceContainer Interface

IUIServiceContainer Members

DevExpress.Maui.Mvvm Namespace