MailEnvelope.Available 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 whether the other properties of the MailEnvelope class are available to code running in the form.
public:
abstract property bool Available { bool get(); };
public abstract bool Available { get; }
member this.Available : bool
Public MustOverride ReadOnly Property Available As Boolean
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 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.