Gets the object representing the content disposition header.
Syntax:
Returns:
If successful, an object of FREDI.mailContentDisposition is returned; otherwise an empty object is returned.
Remarks:
The content disposition header has a field name "Content-Disposition". If this header does not currently exist in the message, it is added and the object is returned by the method.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oMessage As Fredi.mailMessage
Dim oContDispHdr As Fredi.mailContentDisposition
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument
' Load the mail document
oMailDocument.Load App.Path & "\SampleMail.TXT"
' Get top level message of the document, and get the message.
Set oMessage = oMailDocument.GetMessage
' Get the "Content-Disposition" header. If it does not exist, it is added.
Set oContDispHdr = oMessage.GetContentDisposition
MsgBox "Content-Disposition: " & oContDispHdr.Value
Samples