SharedWorkspaceTasks.Add Method

Definition

Adds a task to the list of tasks in a shared workspace and returns a SharedWorkspaceTask object.

public Microsoft.Office.Core.SharedWorkspaceTask Add (string Title, object Status, object Priority, object Assignee, object Description, object DueDate);
abstract member Add : string * obj * obj * obj * obj * obj -> Microsoft.Office.Core.SharedWorkspaceTask
Public Function Add (Title As String, Optional Status As Object, Optional Priority As Object, Optional Assignee As Object, Optional Description As Object, Optional DueDate As Object) As SharedWorkspaceTask

Parameters

Title
String

Required String. The title of the new task.

Status
Object

Optional MsoSharedWorkspaceTaskStatus. The status of the new task. Default is msoSharedWorkspaceTaskStatusNotStarted.

Priority
Object

Optional MsoSharedWorkspaceTaskPriority. The priority of the new task. Default is msoSharedWorkspaceTaskPriorityNormal.

Assignee
Object

Optional SharedWorkspaceMember. The member to whom the new task is assigned.

Description
Object

Optional String. The description of the new task.

DueDate
Object

Optional Date. The due date of the new task.

Returns

Remarks

The schema that defines shared workspace tasks and their properties for a SharePoint Products and Technologies 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:

Applies to