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

IntegrityContainer.RegisterInstance(Type, Object) Method

Registers the specified instance as a singleton with the specified serviceType key.

Namespace: DevExpress.Utils.IoC

Assembly: DevExpress.Data.v19.1.dll

Declaration

public InstanceRegistration RegisterInstance(
    Type serviceType,
    object instance
)

Parameters

Name Type Description
serviceType Type

A Type object.

instance Object

A Object value.

Returns

Type Description
InstanceRegistration

An InstanceRegistration object.

See Also