EmptyServiceProvider.IServiceProviderIsService.IsService(Type) 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.
Determines if the specified service type is available from the IServiceProvider.
virtual bool Microsoft.Extensions.DependencyInjection.IServiceProviderIsService.IsService(Type ^ serviceType) = Microsoft::Extensions::DependencyInjection::IServiceProviderIsService::IsService;
bool IServiceProviderIsService.IsService(Type serviceType);
abstract member Microsoft.Extensions.DependencyInjection.IServiceProviderIsService.IsService : Type -> bool
override this.Microsoft.Extensions.DependencyInjection.IServiceProviderIsService.IsService : Type -> bool
Function IsService (serviceType As Type) As Boolean Implements IServiceProviderIsService.IsService
Parameters
- serviceType
- Type
An object that specifies the type of service object to test.
Returns
true if the specified service is a available, false if it is not.