DevicePlatform 結構

定義

應用程式所運行的裝置平台。

public struct DevicePlatform : IEquatable<Xamarin.Essentials.DevicePlatform>
[System.Runtime.CompilerServices.IsReadOnly]
public struct DevicePlatform : IEquatable<Xamarin.Essentials.DevicePlatform>
繼承
System.ValueType
DevicePlatform
屬性
System.Runtime.CompilerServices.IsReadOnlyAttribute
實作
System.IEquatable<DevicePlatform>

屬性

名稱 Description
Android

有 Android 平台。

iOS

有 iOS 平台。

macOS

應用程式所運行的裝置平台。

Tizen

取得 Tizen 平台

tvOS

取得 tvOS 平台

Unknown

取得未知平台。

UWP

取得 UWP 平台。

watchOS

取得 watchOS 平台

方法

名稱 Description
Create(String)

建立一個新的裝置平台。

Equals(DevicePlatform)

檢查平台的平等性。

Equals(Object)

檢查平台的平等性。

GetHashCode()

取得平台的雜湊碼。

ToString()

平台的串聯表示。

運算子

名稱 Description
Equality(DevicePlatform, DevicePlatform)

檢查平台的平等性。

Inequality(DevicePlatform, DevicePlatform)

檢查平台的平等性。

適用於