Lingua
Modifica

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:

  • If a Status argument is supplied, and the status field has been removed from the customized tasks schema, the argument will be ignored and no error will be raised.

  • If a Status value is supplied that lies outside the status values recognized by the customized tasks schema, the argument will be ignored, the default value will be used, and no error will be raised.

  • If a new required field has been added to the customized tasks schema, then the Add method will fail with an error, and it will no longer be possible to use the Add method to add new tasks.

Applies to