IntegrityContainer.RegisterInstance(Type, Object) Method

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

Namespace: DevExpress.Utils.IoC

Assembly: DevExpress.Data.v20.1.dll

Declaration

public InstanceRegistration RegisterInstance(
    Type serviceType,
    object instance
)
Public Function RegisterInstance(
    serviceType As Type,
    instance As Object
) As InstanceRegistration

Parameters

Name Type Description
serviceType Type

A Type object.

instance Object

A Object value.

Returns

Type Description
InstanceRegistration

An InstanceRegistration object.

See Also