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 将没有任何影响。

适用于