Back to Devexpress

IUIServiceContainer.Register(Object, String) Method

maui-devexpress-dot-maui-dot-mvvm-dot-iuiservicecontainer-dot-register-x28-system-dot-object-system-dot-string-x29.md

latest1000 B
Original Source

IUIServiceContainer.Register(Object, String) Method

Registers the specified service in the container.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
void Register(
    object service,
    string key = null
)

Parameters

NameTypeDescription
serviceSystem.Object

The target service.

|

Optional Parameters

NameTypeDefaultDescription
keyStringnull

The key associated with the registered service.

|

See Also

IUIServiceContainer Interface

IUIServiceContainer Members

DevExpress.Maui.Mvvm Namespace