IServiceProvider public interface IServiceProvider Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects. Documentation object GetService(Type serviceType) Gets the service object of the specified type.