IntegrityContainer.RegisterInstance<TServiceType>(TServiceType) Method

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

Namespace: DevExpress.Utils.IoC

Assembly: DevExpress.Data.v20.2.dll

Declaration

public InstanceRegistration RegisterInstance<TServiceType>(
    TServiceType instance
)
Public Function RegisterInstance(Of TServiceType)(
    instance As TServiceType
) As InstanceRegistration

Parameters

Name Type Description
instance TServiceType

A Object value.

Type Parameters

Name
TServiceType

Returns

Type Description
InstanceRegistration

An InstanceRegistration object.

See Also