ControllerServices.ReplaceSingle Method
Replaces a single-instance service object.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Overrides Sub ReplaceSingle ( _
serviceType As Type, _
service As Object _
)
'Usage
Dim serviceType As Type
Dim service As Object
Me.ReplaceSingle(serviceType, service)
protected override void ReplaceSingle(
Type serviceType,
Object service
)
protected:
virtual void ReplaceSingle(
Type^ serviceType,
Object^ service
) override
abstract ReplaceSingle :
serviceType:Type *
service:Object -> unit
override ReplaceSingle :
serviceType:Type *
service:Object -> unit
protected override function ReplaceSingle(
serviceType : Type,
service : Object
)
Parameters
serviceType
Type: System.TypeThe service type.
service
Type: System.ObjectThe service object that replaces the previous instance.