/// <summary> /// Creates and adds new 'Add Header Field' action to GlobalMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="headerFieldName">Header field name.</param> /// <param name="headerFieldValue">Header field value.</param> /// <returns></returns> public GlobalMessageRuleAction_AddHeaderField Add_AddHeaderField(string description, string headerFieldName, string headerFieldValue) { GlobalMessageRuleAction_AddHeaderField action = new GlobalMessageRuleAction_AddHeaderField( m_pRule, this, Guid.NewGuid().ToString(), description, headerFieldName, headerFieldValue ); // Add action to rule Add(action); m_pActions.Add(action); return(action); }
/// <summary> /// Creates and adds new 'Add Header Field' action to GlobalMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="headerFieldName">Header field name.</param> /// <param name="headerFieldValue">Header field value.</param> /// <returns></returns> public GlobalMessageRuleAction_AddHeaderField Add_AddHeaderField(string description,string headerFieldName,string headerFieldValue) { GlobalMessageRuleAction_AddHeaderField action = new GlobalMessageRuleAction_AddHeaderField( m_pRule, this, Guid.NewGuid().ToString(), description, headerFieldName, headerFieldValue ); // Add action to rule Add(action); m_pActions.Add(action); return action; }