IServiceContainer.RegisterService(Object, Boolean) Method
Registers the specified service.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
service | Object | The service to register. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
yieldToParent | Boolean | False | true, to allow access to the passed service from the parent service container; otherwise, false. |
Remarks
To learn more, see Services in custom ViewModels.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterService(Object, Boolean) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also