Retrieves a service from the scope.
Namespace:  System.Web.Http.Dependencies
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Function GetService ( _
    serviceType As Type _
) As Object
'Usage
Dim instance As IDependencyScope 
Dim serviceType As Type 
Dim returnValue As Object 
returnValue = instance.GetService(serviceType)
Object GetService(
    Type serviceType
)
Object^ GetService(
    Type^ serviceType
)
abstract GetService : 
        serviceType:Type -> Object
function GetService(
    serviceType : Type
) : Object
Parameters
- serviceType 
 Type: System.Type- The service to be retrieved. 
Return Value
Type: System.Object
The retrieved service.