Framework EDI Reference. Methods and Properties
mailMessage. As2To

Sets or gets the "AS2-To" field header value of the message.

Syntax:

 

Remarks:

This property accesses the field header value of the As2-To 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-To Header.
'
oSubjMsg.As2To = "johns@example.com"
oSubjMsg.HeaderFieldValue("AS2-To") = "jsmith@example.com"


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

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