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
Public MustOverride ReadOnly Property Environment As Environment
    Get
'Usage
Dim instance As Application
Dim value As Environment

value = instance.Environment
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.

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

Examples

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