| ConfigurationGetServiceTService Method |
Gets the requested service.
Namespace: Aspose.HtmlAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxpublic TService GetService<TService>()
where TService : class, IService
Public Function GetService(Of TService As {Class, IService}) As TServicepublic:
generic<typename TService>
where TService : ref class, IService
virtual TService GetService() sealed
abstract GetService : unit -> 'TService when 'TService : not struct and IService
override GetService : unit -> 'TService when 'TService : not struct and IService
Type Parameters
- TService
- The type of service to retrieve.
Return Value
Type:
TServiceAn instance of the service if it could be found, or
Field Value
Type:
TServicenull if it could not be found
Implements
IServiceProviderGetServiceTService
See Also