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

取得或設定工作有效的日期和時間。 直到 類型 為 IReference (DateTime) ,且預設為 Null 。 直到 與 Occurrences互斥為止。

WeekOfMonth

取得或設定 UserDataTaskWeekOfMonth型別值,指出工作發生之月份的周數。 第一周是預設值。

適用於