KeyedSingletonService<TKey,TService>.GetService Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the service from the service provider.
public TService GetService (IServiceProvider services);
abstract member GetService : IServiceProvider -> 'Service
override this.GetService : IServiceProvider -> 'Service
Public Function GetService (services As IServiceProvider) As TService
Parameters
- services
- IServiceProvider
The service provider.
Returns
TService
The service.