Langue

ServiceProvider.GetService Méthode

Définition

Récupère l’objet service.

Surcharges

Nom Description
GetService(Guid)

Obtient l’objet de service.

GetService(Type)

Obtient l’objet de service.

GetService(Guid)

Obtient l’objet de service.

public:
 System::Object ^ GetService(Guid guid);
public object GetService(Guid guid);
member this.GetService : Guid -> obj
Public Function GetService (guid As Guid) As Object

Paramètres

guid
Guid

L’interface graphique d’un objet qui spécifie le type d’objet de service à obtenir.

Retours

Retourne Object, un objet de service de type guid.

S’applique à

GetService(Type)

Obtient l’objet de service.

public:
 virtual System::Object ^ GetService(Type ^ serviceType);
public object GetService(Type serviceType);
abstract member GetService : Type -> obj
override this.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

Retourne Object, un objet de service de type serviceType.

Implémente

S’applique à