Méthode SqlCeProviderFactory.IServiceProvider.GetService
Obtient le type de service.
Espace de noms : System.Data.SqlServerCe
Assembly : System.Data.SqlServerCe (en System.Data.SqlServerCe.dll)
Syntaxe
'Déclaration
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
Private Function GetService ( _
serviceType As Type _
) As Object Implements IServiceProvider.GetService
'Utilisation
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 prend en charge l'utilisation d'implémentations d'interface explicites, mais pas la déclaration de nouvelles implémentations d'interface.
Paramètres
- serviceType
Type : System.Type
Type de service.
Valeur de retour
Type : System.Object
Retourne Object.
Implémente
IServiceProvider.GetService(Type)