Share via


SecondaryTile.ShortName Property

Definition

Note

ShortName may be altered or unavailable for releases after Windows 8.1. Instead, use SecondaryTile.DisplayName.

Gets or sets a short name to display directly on the tile.

Note

As of Windows 8.1, this property is ignored and the display name declared in the manifest is used in its place.

public:
 property Platform::String ^ ShortName { Platform::String ^ get(); void set(Platform::String ^ value); };
/// [get: Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [set: Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
winrt::hstring ShortName();

void ShortName(winrt::hstring value);
/// [get: Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
winrt::hstring ShortName();

void ShortName(winrt::hstring value);
public string ShortName { [Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; [Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] set; }
public string ShortName { [Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("ShortName may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayName.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] set; }
var string = secondaryTile.shortName;
secondaryTile.shortName = string;
Public Property ShortName As String

Property Value

String

Platform::String

winrt::hstring

The short name. Anything over 40 characters will be truncated. The user has the option to change this value as part of the pinning process.

Attributes

Remarks

This display name is shown on the tile if the ShowName attribute is set through either the tile constructor or the tileOptions property.

This display name is visible to searches.

The user has the option to change this value to a string of their own choosing as part of the pinning process.

Applies to