Freigeben über


SqlCeProviderFactory.IServiceProvider.GetService-Methode

Ruft den Diensttyp ab.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
Private Function GetService ( _
    serviceType As Type _
) As Object Implements IServiceProvider.GetService
'Usage
Dim instance As SqlCeProviderFactory
Dim serviceType As Type
Dim returnValue As Object

returnValue = CType(instance, IServiceProvider).GetService(serviceType)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
Object IServiceProvider.GetService(
    Type serviceType
)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
private:
virtual Object^ GetService(
    Type^ serviceType
) sealed = IServiceProvider::GetService
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
private abstract GetService : 
        serviceType:Type -> Object 
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
private override GetService : 
        serviceType:Type -> Object 
JScript unterstützt die Verwendung von expliziten Schnittstellenimplementierungen, jedoch nicht die Deklaration neuer expliziter Schnittstellenimplementierungen.

Parameter

Rückgabewert

Typ: System.Object
Gibt Object zurück.

Implementiert

IServiceProvider.GetService(Type)

Siehe auch

Verweis

SqlCeProviderFactory Klasse

System.Data.SqlServerCe-Namespace