Share via


MailEnvelope.Visible Property

Gets or sets the visibility of the custom e-mail message created with a MailEnvelopeObject object that is associated with a WindowObject object.

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

Syntax

'Declaration
Property Visible As Boolean
    Get
    Set
'Usage
Dim instance As MailEnvelope
Dim value As Boolean

value = instance.Visible

instance.Visible = value
bool Visible { get; set; }

Property Value

Type: System.Boolean

Remarks

When the Visible property of the MailEnvelope object is set to true, the custom e-mail message will be displayed using Microsoft Office Outlook 2003. If there is no default e-mail editor configured, the Visible property will return an error.

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.

Examples

In the following example, the Visible property of the MailEnvelope object is used to display an e-mail message in Microsoft Office Outlook 2003:

MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.Visible = true;

See Also

Reference

MailEnvelope Interface

MailEnvelope Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace