UserDataTask Class

Definition

Represents a task.

public ref class UserDataTask 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 UserDataTask 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 UserDataTask
function UserDataTask()
Public NotInheritable Class UserDataTask
Inheritance
Object Platform::Object IInspectable UserDataTask
Attributes

Windows requirements

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

Remarks

No matter how you store task information in your app, you must be able to put that information into a UserDataTask object. This way, other apps that allow users to select tasks can use your app and process the task information it provides.

Constructors

UserDataTask()

Initializes a new instance of the UserDataTask class.

Properties

CompletedDate

Gets or sets the completion date and time of the task.

Details

Gets or sets a string value. The string contains extended details that describe the task. Details is of type String and a maximum of 1,073,741,823 characters in length, which is the maximum length of a JET database string.

DetailsKind

Gets or sets the type of task details, plain text or HTML.

DueDate

Gets or sets the due date of the task.

Id

Gets the unique identifier of the task.

Kind

Gets the kind of task (For example: Recurring etc.).

ListId

Gets the unique identifier for the task list associated with the task.

Priority

Gets or sets the priority of the task.

RecurrenceProperties

Gets or sets an object that represents when and how often a task occurs.

RegenerationProperties

Gets or sets an object that represents how many times and at what interval the task is generated.

Reminder

Gets or sets a time span value. The value declares the amount of time to subtract from the DueDate, and that time used as the issue time for a reminder for a task. A null value indicates that the task won't issue a reminder. Reminder is of type IReference(TimeSpan).

RemoteId

Gets or sets an ID that can be used by a service provider to access the UserDataTask in their remote system.

Sensitivity

Gets or sets a UserDataTaskSensitivity-typed value that indicates the sensitivity of the task.

StartDate

Gets or sets the starting date and time for the task.

Subject

Gets or sets a string that communicates the subject of the task. Subject is of type String and a maximum of 255 characters in length.

Applies to