Skip to main content

UIServiceContainer.GetService(Type, String) Method

Performs a search for a service implementing the specified service interface.

Namespace: DevExpress.Mvvm

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

NuGet Package: DevExpress.WinUI

#Declaration

public object GetService(
    Type type,
    string key = null
)

#Parameters

Name Type Description
type Type

A service type.

#Optional Parameters

Name Type Default Description
key String null

A service identifier.

#Returns

Type Description
Object

An object implementing the specified service interface.

See Also