Environment.IsBrowser Property
Gets whether the form template was opened from InfoPath Forms Services in a Web browser.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property IsBrowser As Boolean
Get
'Usage
Dim instance As Environment
Dim value As Boolean
value = instance.IsBrowser
public abstract bool IsBrowser { get; }
Property Value
Type: System.Boolean
true if the form template was opened from InfoPath Forms Services in a Web browser; otherwise false.
Remarks
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
See the code sample in the Environment class topic.