IServiceProvider.GetService(Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient l’objet de service du type spécifié.
public:
System::Object ^ GetService(Type ^ serviceType);
public object GetService(Type serviceType);
public object? GetService(Type serviceType);
abstract member GetService : Type -> obj
Public Function GetService (serviceType As Type) As Object
Paramètres
- serviceType
- Type
Objet qui spécifie le type d’objet de service à obtenir.
Retours
Objet de service de type serviceType.
- ou -
null s’il n’existe aucun objet de service de type serviceType.