共用方式為


RawGameController.DisplayName 屬性

定義

硬體所提供的控制器名稱。

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

屬性值

String

Platform::String

winrt::hstring

硬體所提供的控制器名稱。

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

這是適合顯示在應用程式使用者介面中的字串,例如,向使用者顯示要從中選擇的輸入裝置清單。 不過,此字串不保證會當地語系化。 如果您需要確定取得每個地區設定的正確名稱,您可以依照 RawGameController.HardwareProductIdRawGameController.HardwareVendorId保留自己的裝置字串資料表。

適用於