SecondaryTile.ShortName 属性

定义

注意

在Windows 8.1后,ShortName 可能会更改或不可用。 请改用 SecondaryTile.DisplayName

获取或设置要直接显示在磁贴上的短名称。

注意

从Windows 8.1开始,此属性将被忽略,并在清单中声明的显示名称用于该属性的位置。

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

属性值

String

Platform::String

winrt::hstring

短名称。 超过 40 个字符的任何内容将被截断。 用户可以选择在固定过程中更改此值。

属性

注解

如果通过磁贴构造函数或 tileOptions 属性设置 ShowName 属性,则会在磁贴上显示此显示名称。

此显示名称对搜索可见。

用户可以选择将此值更改为自己选择的字符串,作为固定过程的一部分。

适用于