Syntax

expression.Add(Title, Status, Priority, Assignee, Description, Due Date)

expression Required. A variable that represents a object.

Parameters

Name Required/Optional Data Type Description
Title Required String The title of the new task.
Status Optional msoSharedWorkspaceTask The status of the new task. Default is msoSharedWorkspaceTaskNotStarted.
Priority Optional msoSharedWorkspaceTask The priority of the new task. Default is msoSharedWorkspaceTaskNormal.
Assignee Optional SharedWorkspaceMember The member to whom the new task is assigned.
Description Optional String The description of the new task.
DueDate Optional Date The due date of the new task.

Remarks

The schema that defines shared workspace tasks and their properties for a SharePoint site can be modified on the server in such a way that the Add method of the SharedWorkspaceTasks collection may raise an error, or may disregard the values of certain arguments. In particular, the task status and priority enumerations can be customized. Some examples of the problems that can result are mentioned below: