MailEnvelope.Available Property
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
Get
'Usage
Dim instance As MailEnvelope
Dim value As Boolean
value = instance.Available
public abstract bool Available { get; }
Property Value
Type: System.Boolean
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 Outlook 2010. If a form is sent as an e-mail attachment to a user running Outlook 2010, 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 InfoPath Filler.