Framework EDI Reference. Methods and Properties
mailMessage. ContentType

Sets or gets the value of the Content-Type header of the message.

Syntax:

 

Remarks:

This property accesses the field header value of the Content-Type header of the message.  Setting and getting this property is equivalent to:

Dim oSubjMsg As Fredi.mailMessage
:
' The following calls are equivalent when setting the Content-Type Header.
'
oSubjMsg.ContentType = "application/x-12"
oSubjMsg.HeaderFieldValue("Content-Type") = "application/x-12"


Dim sContentType As String
::
' The following calls are equivalent when getting the Content-Type Header.
'
sContentType = oSubjMsg.ContentType
sContentType = oSubjMsg.HeaderFieldValue("Content-Typee")

The Content-Type header describes the data contained in the body of the message.  To automatically process EDI documents in the message, the following content-types are recognized: