ServiceProvider.Add Method (Type, Type)

Adds a specified service provider.

Namespace:  Microsoft.Owin.Hosting.Services
Assembly:  Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)

Syntax

'Declaration
Public Overridable Function Add ( _
    serviceType As Type, _
    implementationType As Type _
) As ServiceProvider
'Usage
Dim instance As ServiceProvider 
Dim serviceType As Type 
Dim implementationType As Type 
Dim returnValue As ServiceProvider 

returnValue = instance.Add(serviceType, _
    implementationType)
public virtual ServiceProvider Add(
    Type serviceType,
    Type implementationType
)
public:
virtual ServiceProvider^ Add(
    Type^ serviceType, 
    Type^ implementationType
)
abstract Add : 
        serviceType:Type * 
        implementationType:Type -> ServiceProvider  
override Add : 
        serviceType:Type * 
        implementationType:Type -> ServiceProvider
public function Add(
    serviceType : Type, 
    implementationType : Type
) : ServiceProvider

Parameters

  • serviceType
    Type: System.Type
    The type of the service.
  • implementationType
    Type: System.Type
    The implementation type.

Return Value

Type: Microsoft.Owin.Hosting.Services.ServiceProvider
The added ServiceProvider.

See Also

Reference

ServiceProvider Class

Add Overload

Microsoft.Owin.Hosting.Services Namespace