Method GetService GetService(Type) Gets a service object of the specified type. Always returns null. Declaration public object? GetService(Type serviceType) Parameters Type Name Description Type serviceType Returns Type Description object Implements IServiceProvider.GetService(Type)