public void AddComment( ProjectTaskBase task, string comment, IEnumerable<Attachment> attachments )
Add a comment to the task
Syntax
public void AddComment( ProjectTaskBase task, string comment, IEnumerable<Attachment> attachments )
Parameters
- task
- Type: ProjectTaskBase
Task. Object. Access path: PublicAPI.Projects.ProjectTaskBase
- comment
- Type: System String
Comment
- attachments
- Type: System.Collections.Generic IEnumerable Attachment
Attachments. Object. Access path: PublicAPI.Portal.Objects.Common.Attachment
Examples
//load the task by ID var task = PublicAPI.Portal.TaskBase.Load(3); //comment to add var comment = "Comment"; //Add the comment PublicAPI.Portal.TaskBase.AddComment(task, comment);
See Also