Skip to main content

IUIServiceContainer.GetService(Type, String) Method

Returns a service with the specified type and key.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.WinUI.Mvvm.v23.2.dll

NuGet Package: DevExpress.WinUI

#Declaration

object GetService(
    Type type,
    string key = null
)

#Parameters

Name Type Description
type Type

The service type.

#Optional Parameters

Name Type Default Description
key String null

The service key.

#Returns

Type Description
Object

The service.

See Also