RawGameController.DisplayName 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
硬體所提供的控制器名稱。
public:
property Platform::String ^ DisplayName { Platform::String ^ get(); };
winrt::hstring DisplayName();
public string DisplayName { get; }
var string = rawGameController.displayName;
Public ReadOnly Property DisplayName As String
屬性值
硬體所提供的控制器名稱。
Windows 需求
裝置系列 |
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)
|
備註
這是適合顯示在應用程式使用者介面中的字串,例如,向使用者顯示要從中選擇的輸入裝置清單。 不過,此字串不保證會當地語系化。 如果您需要確定取得每個地區設定的正確名稱,您可以依照 RawGameController.HardwareProductId 和 RawGameController.HardwareVendorId保留自己的裝置字串資料表。