Environment.IsMobile property

Office 2013 and later

Gets whether the form template was opened from InfoPath Forms Services in a browser on a mobile device.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract bool IsMobile { get; }

Property value

Type: System.Boolean
true if the form template was opened from InfoPath Forms Services in a browser on a mobile device; otherwise false.

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.

See the code sample in the Environment class topic.

Show: