Discuss this help topic in SecureBlackbox Forum


TElMessageHeader     See also     

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

Deletes the field from the message header.


    void DeleteField(int Index);
    void DeleteField(string Name, int Index);

    Sub DeleteField(ByVal Index As Integer)
    Sub DeleteField(ByVal Name As String, ByVal Index As Integer)

    procedure DeleteField(Index: Integer);
    procedure DeleteField(const Name: TString; Index: Integer = 0);

    void DeleteField(int32_t Index);
    void DeleteField(const sb_u16string &Name, int32_t Index);
    void DeleteField(const std::wstring &Name, int32_t Index);

    void DeleteField(integer $Index)
    void DeleteField(string $Name, integer $Index)

    void deleteField(String Name, int Index);
    void deleteField(int Index);


  • Index - index of the field that must be deleted.
  • Name - name of the field that must be deleted.


    Use this method when you want to delete some field from the header.
    You can delete field by its index or by name. There can be several fields with one name. In this case Index parameter specifies the index of the field among fields with the same name. If you specify only Name then the first present field with this name will be deleted.

See also:     AddField     DeleteMailAddressList     IsFieldExists    

Discuss this help topic in SecureBlackbox Forum