Discuss this help topic in SecureBlackbox Forum

TElMessagePart.ContentID

TElMessagePart     See also     


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


Specifies contents of "Content-ID" header field.

Declaration

[C#]
    string ContentID;

[VB.NET]
    Property ContentID As String

[Pascal]
    property ContentID : TString;
    procedure SetContentID(Const ContentID: TString; ClearParams: Boolean = False);

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

[PHP]
    string get_ContentID()

[Java]
    String getContentID();
    void setContentID(String AValue, boolean ClearParams);

Parameters

  • ContentID - content id of the part.
  • ClearParams - determines if field parameters will be deleted.
    Default value - False.

Description

    Use this property to get/set content id of the part. Like the Message-ID values, Content-ID values must be generated to be world-unique.

    The following paragraph is taken from RFC 2045 (Freed et al.), part 7:

    «The Content-ID value may be used for uniquely identifying MIME entities in several contexts, particularly for caching data referenced by the message/external-body mechanism. Although the Content-ID header is generally optional, its use is MANDATORY in implementations which generate data of the optional MIME media type "message/external-body". That is, each message/external-body entity must have a Content-ID field to permit caching of such data. »

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

See also:     Message-ID     ContentDescription    

Discuss this help topic in SecureBlackbox Forum