Share via


SecondaryTile.ShortName Properti

Definisi

Catatan

ShortName dapat diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan SecondaryTile.DisplayName.

Mendapatkan atau mengatur nama pendek untuk ditampilkan langsung pada petak peta.

Catatan

Pada Windows 8.1, properti ini diabaikan dan nama tampilan yang dideklarasikan dalam manifes digunakan sebagai gantinya.

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

Nilai Properti

String

Platform::String

winrt::hstring

Nama pendeknya. Apa pun yang lebih dari 40 karakter akan dipotong. Pengguna memiliki opsi untuk mengubah nilai ini sebagai bagian dari proses penyematan.

Atribut

Keterangan

Nama tampilan ini ditampilkan pada petak jika atribut ShowName diatur melalui konstruktor petak peta atau properti tileOptions .

Nama tampilan ini terlihat oleh pencarian.

Pengguna memiliki opsi untuk mengubah nilai ini menjadi string yang mereka pilih sendiri sebagai bagian dari proses penyematan.

Berlaku untuk