Export (0) Print
Expand All

Window2.MailEnvelope Property (Microsoft.Office.Interop.InfoPath.SemiTrust)

Gets a reference to the MailEnvelopeObject object associated with the window that is represented by the WindowObject object.

This property is not CLS-compliant.  

Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)

MailEnvelopeObject MailEnvelope { get; }

The MailEnvelope object can be used only with the editing window types; if used with a designing window type, it will return an error. It will also return an error if no form is open in the form area.

ImportantImportant:

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

In the following example, the MailEnvelope property of the WindowObject object is used to set a reference to the MailEnvelopeObject object.

MailEnvelope myEnv = thisApplication.ActiveWindow.MailEnvelope;

Community Additions

ADD
Show:
© 2014 Microsoft