Compartilhar via


Método SqlCeProviderFactory.IServiceProvider.GetService

Obtém o tipo de serviço.

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

Sintaxe

'Declaração
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
Private Function GetService ( _
    serviceType As Type _
) As Object Implements IServiceProvider.GetService
'Uso
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 
O JScript dá suporte ao uso de implementações de interface explícitas, mas não à declaração de novas.

Parâmetros

Valor de retorno

Tipo: System.Object
Retorna Object.

Implementa

IServiceProvider.GetService(Type)

Consulte também

Referência

SqlCeProviderFactory Classe

Namespace System.Data.SqlServerCe