Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.GetField

TElMessageHeader     See also     


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


Returns a field from the header.

Declaration

[C#/Java]
    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)

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