HttpCapabilitiesBase.IsMobileDevice Property

 

Gets a value indicating whether the browser is a recognized mobile device.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

abstract IsMobileDevice : bool with get
override IsMobileDevice : bool with get

Property Value

Type: System.Boolean

true if the browser is a recognized mobile device; otherwise, false. The default is true.

The following code example shows how to determine whether the browser is a mobile device.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: