Share via


MailEnvelope.Available Property (Microsoft.Office.InfoPath)

Gets whether the other properties of the MailEnvelope class are available to code running in the form.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Available As Boolean
'Usage
Dim instance As MailEnvelope
Dim value As Boolean

value = instance.Available
public abstract bool Available { get; }

Property Value

true if the other properties of the MailEnvelope class are available to code running in the form; otherwise false.

Remarks

The Available property is used to test whether the form is open in Microsoft Office Outlook 2007. If a form is sent as an e-mail attachment to a user running Microsoft Office Outlook 2007, the form will open within Outlook. In this context, it is not appropriate to programmatically create an e-mail message for attaching and sending the currently open InfoPath form because the form and e-mail message to which it is attached are already open in Outlook, and the Available property will return false. If the form is opened in InfoPath, the Available property will return true and form code can use the properties of the MailEnvelope class.

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.

This type or member can be accessed only from code running in forms opened in Microsoft Office InfoPath 2007.

See Also

Reference

MailEnvelope Class
MailEnvelope Members
Microsoft.Office.InfoPath Namespace