Application.Environment property

Office 2013 and later

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)

public abstract Environment Environment { get; }

Property value

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

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 InfoPath Filler or in a Web browser.

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

Show: