SqlClientFactory.IServiceProvider.GetService(Type) 方法

定义

其他服务的扩展机制;目前唯一支持的服务是 DbProviderServices

 virtual System::Object ^ System.IServiceProvider.GetService(Type ^ serviceType) = IServiceProvider::GetService;
object IServiceProvider.GetService (Type serviceType);
abstract member System.IServiceProvider.GetService : Type -> obj
override this.System.IServiceProvider.GetService : Type -> obj
Function GetService (serviceType As Type) As Object Implements IServiceProvider.GetService

参数

serviceType
Type

返回

请求的服务提供商或 null。

实现

适用于