Share via


DataClientObject<T>.IServiceProvider.GetService, méthode

Récupère le service correspondant au type de contrôle spécifié.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Private Function GetService ( _
    serviceType As Type _
) As Object Implements IServiceProvider.GetService
Object IServiceProvider.GetService(
    Type serviceType
)
private:
virtual Object^ GetService(
    Type^ serviceType
) sealed = IServiceProvider::GetService
private abstract GetService : 
        serviceType:Type -> Object 
private override GetService : 
        serviceType:Type -> Object 
JScript ne prend pas en charge les implémentations d'interfaces explicites.

Paramètres

  • serviceType
    Type : System.Type
    Le type de service à retourner.

Valeur de retour

Type : System.Object
Un objet de service correspondant au type de contrôle spécifié.

Implémentations

IServiceProvider.GetService(Type)

Sécurité .NET Framework

Voir aussi

Référence

DataClientObject<T> Classe

Microsoft.VisualStudio.Data.Framework, espace de noms