語言

AppTaskContent.MaxButtons 屬性

定義

獲得任務內容中最多可新增的按鈕數量。

public:
 static property unsigned int MaxButtons { unsigned int get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
static uint32_t MaxButtons();
[Windows.Foundation.Metadata.Experimental]
public static uint MaxButtons { [Windows.Foundation.Metadata.Experimental] get; }
var uInt32 = AppTaskContent.maxButtons;
Public Shared ReadOnly Property MaxButtons As UInteger

屬性值

UInt32

unsigned int

uint32_t

使用 AddButton 可新增的最大按鈕數量。

屬性

備註

這很重要

應用程式任務支援將從 2026 年 5 月開始逐步推送至 Windows 11。 API Windows.UI.Shell.Tasks 所啟用的體驗要求對應的應用程式任務功能必須存在於該應用程式執行的 Windows 版本中。 否則,這些 API 將不會有任何影響。

適用於