AdoDotNetConnectionSupport.CreateService 方法

创建基于服务指定接口类型的服务对象。

命名空间:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Protected Overrides Function CreateService ( _
    container As IServiceContainer, _
    serviceType As Type _
) As Object
protected override Object CreateService(
    IServiceContainer container,
    Type serviceType
)
protected:
virtual Object^ CreateService(
    IServiceContainer^ container, 
    Type^ serviceType
) override
abstract CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object  
override CreateService : 
        container:IServiceContainer * 
        serviceType:Type -> Object
protected override function CreateService(
    container : IServiceContainer, 
    serviceType : Type
) : Object

参数

  • container
    类型:IServiceContainer

    包含服务的服务提供程序对象。

  • serviceType
    类型:Type

    创建服务的 Type

返回值

类型:Object
服务对象。

.NET Framework 安全性

请参阅

参考

AdoDotNetConnectionSupport 类

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间