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

IViewInjectionService.GetKey(Object) Method

Returns the key of an injected ViewModel (and its View).

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Uwp.Controls, DevExpress.WindowsDesktop.Mvvm

Declaration

object GetKey(
    object viewModel
)

Parameters

Name Type Description
viewModel Object

An object representing the ViewModel.

Returns

Type Description
Object

An object that specifies the key of the injected ViewModel (and its View).

See Also