Share via


EmailAdapterObject Interface

Represents the data adapter for submitting form information in e-mail by using Microsoft Office Outlook.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
<GuidAttribute("096CD5D7-0786-11D1-95FA-0080C78EE3BB")> _
Public Interface EmailAdapterObject _
    Inherits EmailAdapter
'Usage
Dim instance As EmailAdapterObject
[GuidAttribute("096CD5D7-0786-11D1-95FA-0080C78EE3BB")]
public interface EmailAdapterObject : EmailAdapter

Remarks

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, seeEmailAdapter.

Use the Item property of the DataAdaptersCollection collection to return an EmailAdapter object.

Examples

The following example initializes an EmailAdapter object by obtaining it from the data adapters collection, sets the To and Subject property and submits it.

EmailAdapterObject myEmailAdapter = ((EmailAdapterObject)thisXDocument.DataAdapters[3]);
myEmailAdapter.To = "list@example.com";
myEmailAdapter.Subject = "Status Report";
myEmailAdapter.Submit();

See Also

Reference

EmailAdapterObject Members

Microsoft.Office.Interop.InfoPath Namespace