Skip to main content

ServiceContainer.RegisterService(Object, Boolean) Method

Registers the specified service.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v22.2.dll

NuGet Package: DevExpress.Mvvm


public void RegisterService(
    object service,
    bool yieldToParent


Name Type Description
service Object

The service to register.

yieldToParent Boolean

true, to allow access to the passed service from the parent service container; otherwise, false.


To learn more, see Services in custom ViewModels.

See Also