DevicePlatform Struktura
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Reprezentuje platformę urządzeń, na którą działa aplikacja.
public value class DevicePlatform : IEquatable<Microsoft::Maui::Devices::DevicePlatform>
public readonly struct DevicePlatform : IEquatable<Microsoft.Maui.Devices.DevicePlatform>
type DevicePlatform = struct
Public Structure DevicePlatform
Implements IEquatable(Of DevicePlatform)
- Dziedziczenie
-
DevicePlatform
- Implementuje
Właściwości
| Android |
Pobiera wystąpienie DevicePlatform , które reprezentuje system Android. |
| iOS |
Pobiera wystąpienie DevicePlatform , które reprezentuje system iOS. |
| MacCatalyst |
Pobiera wystąpienie DevicePlatform , które reprezentuje komputer Mac Catalyst. |
| macOS |
Pobiera wystąpienie DevicePlatform , które reprezentuje system macOS. |
| Tizen |
Pobiera wystąpienie DevicePlatform , które reprezentuje Samsung Tizen. |
| tvOS |
Pobiera wystąpienie DevicePlatform , które reprezentuje system Apple tvOS. |
| Unknown |
Pobiera wystąpienie, DevicePlatform które reprezentuje nieznaną platformę. Jest to używane w przypadku, gdy bieżąca platforma jest nieznana. |
| UWP |
Przestarzałe.
Pobiera wystąpienie DevicePlatform , które reprezentuje platformę UWP. |
| watchOS |
Pobiera wystąpienie DevicePlatform , które reprezentuje apple watchOS. |
| WinUI |
Pobiera wystąpienie DevicePlatform , które reprezentuje winUI. |
Metody
| Create(String) |
Tworzy nowe wystąpienie platformy urządzeń. Może to służyć do definiowania platform niestandardowych. |
| Equals(DevicePlatform) |
Porównuje wystąpienia bazowe DevicePlatform . |
| Equals(Object) |
Sprawdza równość platformy. |
| GetHashCode() |
Pobiera kod skrótu dla tego wystąpienia platformy. |
| ToString() |
Zwraca ciąg reprezentujący bieżącą wartość platformy urządzenia. |
Operatory
| Equality(DevicePlatform, DevicePlatform) |
Operator równości dla równości. |
| Inequality(DevicePlatform, DevicePlatform) |
Operator nierówności. |