Application.Environment Property

Gets a reference to an Environment object that can be used to determine which runtime environment (InfoPath, Web browser, or mobile browser) the form is running in.

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

Syntax

'Declaration
'Usage

Property Value

An Environment object that can be used to determine which runtime environment (InfoPath, Web browser, or mobile browser) the form is running in.

Remarks

The Environment object can be used to determine which runtime environment the form is running in.

This member can be accessed without restrictions.

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

Example

For an example of how to use the Environment property, see the Environment class topic.

See Also

Reference

Application Class
Application Members
Microsoft.Office.InfoPath Namespace