UserDataTaskRecurrenceProperties 类

定义

表示任务发生的时间和频率。

public ref class UserDataTaskRecurrenceProperties sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserDataTaskRecurrenceProperties final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserDataTaskRecurrenceProperties
function UserDataTaskRecurrenceProperties()
Public NotInheritable Class UserDataTaskRecurrenceProperties
继承
Object Platform::Object IInspectable UserDataTaskRecurrenceProperties
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

构造函数

UserDataTaskRecurrenceProperties()

初始化 UserDataTaskRecurrenceProperties 类的新实例。

属性

Day

获取或设置任务发生的日期。 Day 的类型为 UInt32,默认值为 1,可以是 1 到 31 的值。

DaysOfWeek

获取或设置一周中发生任务的所有日期的 UserDataTaskDaysOfWeek 类型的值的组合。

Interval

获取或设置任务发生之间的间隔。 Interval 的类型为 UInt32 ,默认值为 1。 对于每日,间隔是介于两者之间的天数、周数、周数等。

Month

获取或设置任务发生的月份。 Month 的类型为 UInt32,默认值为 1,可以是 1 到 12 的值。

Occurrences

获取或设置任务重复的次数。 事件类型为 IReference (UInt32) ,默认情况下为 NULL 。 匹配项与 Until 互斥。

Unit

获取或设置 一个 UserDataTaskRecurrenceUnit 类型的值,该值指示任务发生的频率。

Until

获取或设置任务生效前的日期和时间。 Until 类型为 IReference (DateTime) ,默认情况下为 NULL 。 直到 与 Occurrences 互斥。

WeekOfMonth

获取或设置 一个 UserDataTaskWeekOfMonth 类型的值,该值指示执行任务的月份中的星期。 第一周是默认值。

适用于