public void SendMessageToInfoChannel( Project project, string messageText, string messageSubject, User messageAuthor )
Send a message to the project channel
Syntax
public void SendMessageToInfoChannel( Project project, string messageText, string messageSubject, User messageAuthor )
Parameters
- project
- Type: Project
Project, to whose channel the message is sent. Object. Access path: PublicAPI.Projects.Project
- messageText
- Type: System String
Message text
- messageSubject
- Type: System String
Message subject
- messageAuthor
- Type: User
Message author (optional parameter). Object. Access path: PublicAPI.Portal.Security.User
Examples
//load the project by ID var project = PublicAPI.Projects.Project.Load(3); //message text var messageText = "Message text"; //message subject var messageSubject = "Message subject"; //load the user by ID var messageAuthor = PublicAPI.Portal.Security.User.Load(3); //send the message to the project channel PublicAPI.Projects.Project.SendMessageToInfoChannel(project, messageText, messageSubject, messageAuthor);
See Also