Discuss this help topic in SecureBlackbox Forum

TElMessagePart.ContentDisposition

TElMessagePart     See also     


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


Specifies content of the "Content-Disposition:" header field.

Declaration

[C#]
    string ContentDisposition;

[VB.NET]
    Property ContentDisposition As String

[Pascal]
    property ContentDispisition : TString;
    procedure SetContentDisposition(const ContentDisposition:TString; ClearParams: Boolean = False);

[C++]
    void get_ContentDisposition(sb_u16string &OutResult);
    void get_ContentDisposition(std::wstring &OutResult);

[PHP]
    string get_ContentDisposition()

[Java]
    String getContentDisposition();
    void setContentDisposition(String AValue, boolean ClearParams);

Parameters

  • ContentDisposition - value of the "Content-Disposition:" field.
  • ClearParams - determines if previously set field parameters will be deleted.
    Default value - False.

Description

    "Content-Disposition:" header field is used within a multipart entity to allow the sender to suggest presentation information. There are two disposition types: INLINE and ATTACHMENT.

    The following paragraph is taken from RFC 2387 (Levinson), part 4:

    «Using Content-Disposition headers in addition to Multipart/Related provides presentation information to User Agents that do not recognize Multipart/Related. They will treat the multipart as Multipart/Mixed and they may find the Content-Disposition information useful. »

     Note, this property is read-only. Use SetContentDisposition method to set its value.

     Note, unlike other header fields "Content-Disposition:" field can not include RFC 822 comments.

See also:     IsAttachment     IsInline    

Discuss this help topic in SecureBlackbox Forum