Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.GetField

TElMessageHeader     See also     


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


Returns a field from the header.

Declaration

[C#]
    TElMessageHeaderField GetField(int Index);
    TElMessageHeaderField GetField(string Name, int Index);

[VB.NET]
    Function GetField(ByVal Index As Integer) As TElMessageHeaderField
    Function GetField(ByVal Name As String, ByVal Index As Integer) As TElMessageHeaderField

[Pascal]
    function GetField(Index: Integer): TElMessageHeaderField;
    function GetField(const Name: TString; Index: Integer = 0): TElMessageHeaderField;

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

[PHP]
    TElMessageHeaderField GetField(integer $Index)
    TElMessageHeaderField GetField(string $Name, integer $Index)

[Java]
    TElMessageHeaderField getField(int Index);
    TElMessageHeaderField getField(String Name, int Index);

Parameters

  • Index - index of the header field
  • Name - name of the header field

Return value

    Header field.

Description

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

See also:     GetMailAddressList     SetField    

Discuss this help topic in SecureBlackbox Forum