Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.AddField

TElMessageHeader     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Adds field to the message header.

Declaration

[C#]
    TElMessageHeaderField AddField(string Name, string Value, bool bOverride);

[VB.NET]
    Function AddField(ByVal Name As String, ByVal Value As String, ByVal bOverride As Boolean) As TElMessageHeaderField

[Pascal]
    function AddField(const Name, Value: TString; bOverride: Boolean = False): TElMessageHeaderField;

[C++]
    TElMessageHeaderFieldHandle AddField(const sb_u16string &Name, const sb_u16string &Value, bool bOverride);
    TElMessageHeaderFieldHandle AddField(const std::wstring &Name, const std::wstring &Value, bool bOverride);

[PHP]
    TElMessageHeaderField AddField(string $Name, string $Value, bool $bOverride)

[Java]
    TElMessageHeaderField addField(String Name, String Value, boolean bOverride);

Parameters

  • Name - name of the new field.
  • Value - value of the new field.
  • bOverride - indicates if old field will be overriden or new one will be added.
    True - the first field with specified Name will be override.
    False - new field with specified Name will be added.
    Default value is False.

Description

        Use this method when you want to add new field to the message header. If several fields with such name already exist you can override the first one.

See also:     AddMailAddressList     DeleteField     IsFieldExists    

Discuss this help topic in SecureBlackbox Forum