Discuss this help topic in SecureBlackbox Forum

TElMessagePartHandler.IsSupportedThisBody

TElMessagePartHandler     See also     


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


Indicates if this class supports extended handling for the current message part.

Declaration

[C#/Java]
    not available

[VB.NET]
    not available

[Pascal]
    protected class function IsSupportedThisBody(mp: TElMessagePart; var CreateParams: TObject): Boolean;

[PHP]
    not available

[C++]
    not available

Parameters

  • mp - message part to be checked.
  • CreateParams - optional object that can be created by this method for storing message part body parsing state.If handler supports current message part body than this parameter will be passed to constructor of the class instance.This parameter can be used in order to avoid repeated message part body parsing during further handling, for example in OnParse method.

Return value

    Returns True if this class supports extended handling for content type of the current message part, and False otherwise.

Description

    Use this method to find out if content type of the current message part is supported by this class. The message part body is not loaded when this method is invoked. The body can be accessed via message stream.
    When IsSupportedThisBody method is invoked, position in analyzed message stream will be set to the beginning of the current message part body. There is no need to care about position setting.

See also:     IsSupportedThisContentType    

Discuss this help topic in SecureBlackbox Forum