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 Microsoft.​Extensions.​DependencyInjection.​IServiceProviderIsService
Assembly: Microsoft.Extensions.DependencyInjection.Abstractions
Provides methods to determine if the specified type is available from the <see cref="T:System.IServiceProvider" /> .
Methods
bool
IsService​(System.​Type serviceType)
Determines if the specified service type is available from the <see cref="T:System.IServiceProvider" /> .
Returns true if the specified service is a available, false if it is not.
serviceType
An object that specifies the type of service object to test.