IntegrityContainer.RegisterInstance<TServiceType>(TServiceType) Method

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

Namespace: DevExpress.Utils.IoC

Assembly: DevExpress.Data.v21.1.dll

Declaration

public InstanceRegistration RegisterInstance<TServiceType>(
    TServiceType instance
)

Parameters

Name Type Description
instance TServiceType

A Object value.

Type Parameters

Name
TServiceType

Returns

Type Description
InstanceRegistration

An InstanceRegistration object.

See Also