共用方式為


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 個字元的任何專案都會被截斷。 使用者可以選擇在釘選程式期間變更此值。

屬性

備註

如果 ShowName 屬性是透過磚建構函式或 tileOptions 屬性設定,則會在磚上顯示此顯示名稱。

搜尋會顯示此顯示名稱。

使用者可以選擇將此值變更為自己選擇的字串做為釘選程式的一部分。

適用於