MockPackageManager.GetApplicationLabel(ApplicationInfo) 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.
Appelle GetApplicationLabelFormatted et convertit son résultat en chaîne. L’implémentation fictive par défaut lève UnsupportedOperationException.
public string? GetApplicationLabel(Android.Content.PM.ApplicationInfo? info);
override this.GetApplicationLabel : Android.Content.PM.ApplicationInfo -> string
Paramètres
- info
- ApplicationInfo
Informations sur l’application. Passé à GetApplicationLabelFormatted; son implémentation fictive par défaut n’utilise pas cet argument.
Retours
Aucune valeur n’est retournée par la simulation par défaut. Ce wrapper appelle GetApplicationLabelFormatted, dont l’implémentation par défaut lève UnsupportedOperationException.
Remarques
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.