RawGameController.DisplayName Property

Definition

The name of the controller, provided by the hardware.

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

Property Value

String

Platform::String

winrt::hstring

The name of the controller, provided by the hardware.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

This is meant to be a string that's suitable for display in an application's user interface—for example, showing the user a list of input devices from which to choose. However, this string isn't guaranteed to be localized. If you need to be sure that you get the correct name for each locale, you can keep your own string table for devices by RawGameController.HardwareProductId and RawGameController.HardwareVendorId.

Applies to