Skip to main content
A newer version of this page is available. .

ServiceContainer.RegisterService(String, Object, Boolean) Method

Registers the specified service.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

public void RegisterService(
    string key,
    object service,
    bool yieldToParent
)

Parameters

Name Type Description
key String

The service identifier.

service Object

The service to register.

yieldToParent Boolean

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

Remarks

To learn more, see Services in custom ViewModels.

See Also