Skip to main content
All docs
V26.1
  • IocServiceProvider.GetService(Type) Method

    Resolves a service object of the specified type from the dependency injection container configured for the global IocServiceProvider.

    Namespace: DevExpress.Mvvm

    Assembly: DevExpress.Mvvm.v26.1.dll

    Declaration

    public object GetService(
        Type serviceType
    )

    Parameters

    Name Type Description
    serviceType Type

    The type of the requested service.

    Returns

    Type Description
    Object

    An instance of the requested service type, or null if the service cannot be resolved or the provider is not configured.

    See Also