public void AddMessageToInfoChannel( string messageSubject, string messageText, InformationChannel infoChannel, User messageAuthor )
Add a message to an information channel
Syntax
public void AddMessageToInfoChannel( string messageSubject, string messageText, InformationChannel infoChannel, User messageAuthor )
Parameters
- messageSubject
- Type: System String
Message subject
- messageText
- Type: System String
Message text
- infoChannel
- Type: InformationChannel
Infochannel. Object. Access path: PublicAPI.Portal.Objects.Messages.InformationChannel
- messageAuthor
- Type: User
Message author (optional parameter). Object. Access path: PublicAPI.Portal.Security.User
Examples
//load the information channel by ID var infoChannel = PublicAPI.Portal.Objects.Messages.InformationChannel.Load(3); //load the user by ID var messAuthor = PublicAPI.Portal.Security.User.Load(3); //message subject var messSubject = "message subject"; //message text var messText = "message text"; //send the message to the information channel PublicAPI.Portal.Messages.AddMessageToInfoChannel(messSubject, messText, infoChannel, messAuthor);
See Also