OperatingSystem.IsAndroid Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the current application is running on Android.
public:
static bool IsAndroid();
C#
public static bool IsAndroid();
static member IsAndroid : unit -> bool
Public Shared Function IsAndroid () As Boolean
true
if the current application is running on Android; false
otherwise.
Produit | Versions |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner des problèmes et des demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :