Megosztás a következőn keresztül:


DeviceInformation.Name Property

Definition

The name of the device. This name is in the best available language for the app.

public:
 property Platform::String ^ Name { Platform::String ^ get(); };
winrt::hstring Name();
public string Name { get; }
var string = deviceInformation.name;
Public ReadOnly Property Name As String

Property Value

String

Platform::String

winrt::hstring

The name of the device. This name is in the best available language for the app.

Remarks

The Name property should only be used for display purposes only and not for finding a device because the Name can change due to localization or a user assigning a name.

Applies to