IsMobile Property
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Environment.IsMobile Property (Microsoft.Office.InfoPath)

Gets whether the form template was opened from Microsoft Office Forms Server 2007 or 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

true if the form template was opened from Microsoft Office Forms Server 2007 or 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 Office InfoPath 2007 or in a Web browser.

See the code sample in the Environment class topic.

Show:
© 2016 Microsoft