Freigeben über


AdoDotNetConnectionSupport.CreateService-Methode

Erstellt ein neues Dienstobjekt für den angegebenen Schnittstellendiensttyp.

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
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

Parameter

  • container
    Typ: IServiceContainer

    Ein Dienstanbieterobjekt, um den Dienst zu enthalten.

  • serviceType
    Typ: Type

    Type des Diensts zu erstellen.

Rückgabewert

Typ: Object
Das Dienstobjekt.

.NET Framework-Sicherheit

Siehe auch

Referenz

AdoDotNetConnectionSupport Klasse

Microsoft.VisualStudio.Data.Framework.AdoDotNet-Namespace