Partager via


ServiceProvider.GetService Méthode

Définition

Récupère l’objet de service.

Surcharges

GetService(Guid)

Obtient l'objet du service.

GetService(Type)

Obtient l'objet du service.

GetService(Guid)

Obtient l'objet du 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

Guid 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 du 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 spécifiant le type d'objet service à obtenir.

Retours

Retourne Object, un objet de service de type serviceType.

Implémente

S’applique à