RawGameController.DisplayName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.