Package.DisplayName Property

Definition

Gets the display name of the package.

public:
 property Platform::String ^ DisplayName { Platform::String ^ get(); };
winrt::hstring DisplayName();
public string DisplayName { get; }
var string = package.displayName;
Public ReadOnly Property DisplayName As String

Property Value

String

Platform::String

winrt::hstring

The display name.

Remarks

On operating systems earlier than 10.0.19041.0, you must call this property on the package returned by Package.Current, otherwise DisplayName will return an empty string.

Applies to

See also