Share via


UserDataTaskRecurrenceProperties Class

Definition

Represents when and how often a task occurs.

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
Inheritance
Object Platform::Object IInspectable UserDataTaskRecurrenceProperties
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Constructors

UserDataTaskRecurrenceProperties()

Initializes a new instance of the UserDataTaskRecurrenceProperties class.

Properties

Day

Gets or sets the day on which a task occurs. Day is of type UInt32, has a default value of 1, and can be a value from 1 to 31.

DaysOfWeek

Gets or sets a combination of UserDataTaskDaysOfWeek-typed values for all the days of the week on which a task occurs.

Interval

Gets or sets the interval between occurrences of a task. Interval is of type UInt32 and has a default value of 1. For daily, the interval is the number of days in between, for weekly, the number of weeks, and so on.

Month

Gets or sets the month on which a task occurs. Month is of type UInt32, has a default value of 1, and can be a value from 1 to 12.

Occurrences

Gets or sets the number of times a task recurs. Occurrences is of type IReference(UInt32) and is NULL by default. Occurrences is mutually exclusive with Until.

Unit

Gets or sets a UserDataTaskRecurrenceUnit-typed value that indicates the frequency for which the task occurs.

Until

Gets or sets the date and time until which a task is valid. Until is of type IReference(DateTime) and is NULL by default. Until is mutually exclusive with Occurrences.

WeekOfMonth

Gets or sets a UserDataTaskWeekOfMonth-typed value that indicates the week of the month for which the task occurs. The first week is the default.

Applies to