Exemple #1
0
        /// <summary>
        /// Creates and adds new 'Remove Header Field' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="headerField">Header field name what to remove.</param>
        public GlobalMessageRuleAction_RemoveHeaderField Add_RemoveHeaderField(string description, string headerField)
        {
            GlobalMessageRuleAction_RemoveHeaderField action = new GlobalMessageRuleAction_RemoveHeaderField(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                headerField
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Remove Header Field' action to GlobalMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="headerField">Header field name what to remove.</param>
        public GlobalMessageRuleAction_RemoveHeaderField Add_RemoveHeaderField(string description,string headerField)
        {
            GlobalMessageRuleAction_RemoveHeaderField action = new GlobalMessageRuleAction_RemoveHeaderField(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                headerField
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }