Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.DeleteField

TElMessageHeader     See also     


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


Deletes the field from the message header.

Declaration

[C#/Java]
    void DeleteField(int Index);
    void DeleteField(string Name, int Index);

[VB.NET]
    Sub DeleteField(ByVal Index As Integer)
    Sub DeleteField(ByVal Name As String, ByVal Index As Integer)

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

[C++]
    void DeleteField(int32_t Index);
    void DeleteField(const sb_u16string &Name, int32_t Index);
    void DeleteField(const std::wstring &Name, int32_t Index);

[PHP]
    void DeleteField(integer $Index)
    void DeleteField(string $Name, integer $Index)

Parameters

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

Description

    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