IServiceProvider.GetService Method
IIS 7.0
Gets the service object of the specified type.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Parameters
- serviceType
- Type: System..::..Type
An object that specifies the type of service object to get.
Return Value
Type: System..::..ObjectA service object of the type specified by the serviceType parameter, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if there is no service object of type serviceType.