Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Try to get a service of the given type.
Namespace: System.Web.Http.Services
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Function GetService ( _
serviceType As Type _
) As Object
Object GetService(
Type serviceType
)
Object^ GetService(
Type^ serviceType
)
abstract GetService :
serviceType:Type -> Object
function GetService(
serviceType : Type
) : Object
Parameters
- serviceType
Type: System.Type
Type of service to request.
Return Value
Type: System.Object
an instance of the service, or null if the service is not found