Share via


ServiceProvider.GetService Method (Type)

 

Gets the service object of the specified type.

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

Syntax

public virtual object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
)
abstract GetService : 
        serviceType:Type -> Object
override GetService : 
        serviceType:Type -> Object
Public Overridable Function GetService (
    serviceType As Type
) As Object

Parameters

Return Value

Type: System.Object

Returns Object.

Implements

IServiceProvider.GetService(Type)

See Also

ServiceProvider Class
Microsoft.Owin.Hosting.Services Namespace

Return to top