Framework EDI Reference. Methods and Properties
mailMessage. As2From

Sets or get the "AS2-From" field \header value of the message.

Syntax:

 

Remarks:

This property accesses the field header value of the As2-From header of the message.  If the header does not exist the property returns an empty string.

Dim oSubjMsg As Fredi.mailMessage
:
' The following calls are equivalent when setting the AS2-From Header.
'
oSubjMsg.As2To = "johns@example.com"
oSubjMsg.HeaderFieldValue("AS2-From") = "jsmith@example.com"


Dim sAs2To As String
:
' The following calls are equivalent when getting the AS2-From Header.
'
sAs2To = oSubjMsg.As2To
sAs2To = oSubjMsg.HeaderFieldValue("AS2-From")

The AS2-To and AS2-From header fields MUST be present in all AS2 messages.