Discuss this help topic in SecureBlackbox Forum

TElMessageHeader.Parse

TElMessageHeader     See also     


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


Extracts message header fields from string.

Declaration

[C#]
    int Parse(byte[] ASource, ref string Charset, bool IgnoreNativeCharset);

[VB.NET]
    Function Parse(ByVal ASource As Byte(), ByRef Charset As String, ByVal IgnoreNativeCharset As Boolean) As Integer

[Pascal]
    function Parse(const ASource: AnsiString; var Offset: integer; var Charset: AnsiString; IgnoreNativeCharset: boolean = False ): ELMIMERESULT;

[C++]
    int32_t Parse(const std::string &ASource, std::string &Charset, bool IgnoreNativeCharset);

[PHP]
    integer Parse(string $ASource, string &$Charset, bool $IgnoreNativeCharset)

[Java]
    int parse(AnsistringClass ASource, String[] Charset, boolean IgnoreNativeCharset);

Parameters

  • ASource - string from which header must be read.
  • Offset - position in the ASource from which the header begins.
  • Charset - message charset.
  • IgnoreNativeCharset - determines what charset must be applied to the message header:
    True - the one specified in Charset.
    Default value is False.

Return value

    Returns 0 (EL_OK) on success, 1 (EL_WARNING) if information can't be encoded with given Charset and encodings.
    Error otherwise.

Description

    Use this method to decompose header field from stream into parts.

See also:     AddField     DeleteField    

Discuss this help topic in SecureBlackbox Forum