/// <summary> /// Creates and adds new 'Post To NNTP Newsgroup' action to GlobalMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">NTTP server where to post message.</param> /// <param name="port">NNTP server port.</param> /// <param name="newsgroup">NTTP newsgroup where to post message.</param> public GlobalMessageRuleAction_PostToNntpNewsgroup Add_PostToNntp(string description, string host, int port, string newsgroup) { GlobalMessageRuleAction_PostToNntpNewsgroup action = new GlobalMessageRuleAction_PostToNntpNewsgroup( m_pRule, this, Guid.NewGuid().ToString(), description, host, port, newsgroup ); // Add action to rule Add(action); m_pActions.Add(action); return(action); }
/// <summary> /// Creates and adds new 'Post To NNTP Newsgroup' action to GlobalMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">NTTP server where to post message.</param> /// <param name="port">NNTP server port.</param> /// <param name="newsgroup">NTTP newsgroup where to post message.</param> public GlobalMessageRuleAction_PostToNntpNewsgroup Add_PostToNntp(string description,string host,int port,string newsgroup) { GlobalMessageRuleAction_PostToNntpNewsgroup action = new GlobalMessageRuleAction_PostToNntpNewsgroup( m_pRule, this, Guid.NewGuid().ToString(), description, host, port, newsgroup ); // Add action to rule Add(action); m_pActions.Add(action); return action; }