IDependencyScope.GetService Method (Type)


Retrieves a service from the scope.

Namespace:   System.Web.Http.Dependencies
Assembly:  System.Web.Http (in System.Web.Http.dll)


object GetService(
    Type serviceType
Object^ GetService(
    Type^ serviceType
abstract GetService : 
        serviceType:Type -> Object
Function GetService (
    serviceType As Type
) As Object


  • serviceType
    Type: System.Type

    The service to be retrieved.

Return Value

Type: System.Object

The retrieved service.

See Also

IDependencyScope Interface
System.Web.Http.Dependencies Namespace

Return to top