Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​IServiceProvider

Assembly: System.ComponentModel

Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.

Methods

object
GetService​(Type serviceType)
Gets the service object of the specified type.
Returns A service object of type <paramref name="serviceType" /> . -or- <see langword="null" /> if there is no service object of type <paramref name="serviceType" /> .
serviceType An object that specifies the type of service object to get.