Window2.MailEnvelope Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a reference to the MailEnvelopeObject object associated with the window that is represented by the WindowObject object.
public:
property Microsoft::Office::Interop::InfoPath::SemiTrust::MailEnvelopeObject ^ MailEnvelope { Microsoft::Office::Interop::InfoPath::SemiTrust::MailEnvelopeObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObject MailEnvelope { get; }
member this.MailEnvelope : Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObject
Public ReadOnly Property MailEnvelope As MailEnvelopeObject
Property Value
Implements
Examples
In the following example, the MailEnvelope property of the WindowObject object is used to set a reference to the MailEnvelopeObject object.
<span class="label">MailEnvelope</span> myEnv = thisApplication.ActiveWindow.<span class="label">MailEnvelope</span>;
Remarks
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.
Important: 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.