|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
EmailAdapterObject Interface (Microsoft.Office.Interop.InfoPath.SemiTrust)
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see EmailAdapter.
Use the Item property of the DataAdaptersCollection collection to return an EmailAdapterObject object. Before you can access and use the properties and methods of the EmailAdapterObject, you must cast the object returned from the DataAdaptersCollection to the EmailAdapterObject type.
The following example retrieves an EmailAdapter object that represents the data connection named "Email Submit" from the DataAdaptersCollection object, sets the To and Subject property, and then submits the current form to the data connection.