OnIdiom<T> 類別

定義

提供目前目標慣用語的 T 慣用語特定值。

public class OnIdiom<T>
type OnIdiom<'T> = class

類型參數

T

要取得平臺特定實作的類型。

繼承
OnIdiom<T>

建構函式

OnIdiom<T>()

初始化 OnIdiom 的新執行個體

屬性

Default

提供目前目標慣用語的 T 慣用語特定值。

Desktop

取得或設定桌面系統上套用的值。

Phone

取得或設定電話類裝置上套用的值。

Tablet

取得或設定平板電腦類裝置上套用的值。

TV

取得或設定電視類裝置上套用的值。

Watch

取得或設定手錶類裝置上套用的值。

運算子

Implicit(OnIdiom<T> to T)

根據 Device.Idiom,將 OnIdiom 隱含轉換成 T。

適用於