DependencyService.Get<T>(DependencyFetchTarget) 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.
Retourne l’implémentation spécifique à la plateforme de type T
.
public static T Get<T> (Xamarin.Forms.DependencyFetchTarget fetchTarget = Xamarin.Forms.DependencyFetchTarget.GlobalInstance) where T : class;
static member Get : Xamarin.Forms.DependencyFetchTarget -> 'T (requires 'T : null)
Paramètres de type
- T
Type d’objet à extraire.
Paramètres
- fetchTarget
- DependencyFetchTarget
Cible de récupération de dépendance.
Retours
T