DevicePlatform Struct
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.
Represents the device platform that the application is running on.
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)
- Inheritance
-
DevicePlatform
- Implements
Android |
Gets an instance of DevicePlatform that represents Android. |
iOS |
Gets an instance of DevicePlatform that represents iOS. |
Mac |
Gets an instance of DevicePlatform that represents Mac Catalyst. |
macOS |
Gets an instance of DevicePlatform that represents macOS. |
Tizen |
Gets an instance of DevicePlatform that represents Samsung Tizen. |
tvOS |
Gets an instance of DevicePlatform that represents Apple tvOS. |
Unknown |
Gets an instance of DevicePlatform that represents an unknown platform. This is used for when the current platform is unknown. |
UWP |
Obsolete.
Gets an instance of DevicePlatform that represents UWP. |
watchOS |
Gets an instance of DevicePlatform that represents Apple watchOS. |
WinUI |
Gets an instance of DevicePlatform that represents WinUI. |
Create(String) |
Creates a new device platform instance. This can be used to define your custom platforms. |
Equals(Device |
Compares the underlying DevicePlatform instances. |
Equals(Object) |
Checks the equality of the platform. |
Get |
Gets the hash code for this platform instance. |
To |
Returns a string representation of the current value of the device platform. |
Equality(Device |
Equality operator for equals. |
Inequality(Device |
Inequality operator. |
Product | Versions |
---|---|
.NET MAUI | 8, 9 |
.NET MAUI feedback
.NET MAUI is an open source project. Select a link to provide feedback: