Determines if the request originated from a mobile-device client and stores the result in a cookie/session.
Namespace: MonoSoftware.WebAssembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static bool IsMobileClient(
this HttpRequest request
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function IsMobileClient (
request As HttpRequest
) As Boolean |
Visual C++ |
---|
public:
[ExtensionAttribute]
static bool IsMobileClient(
HttpRequest^ request
) |
F# |
---|
static member IsMobileClient :
request : HttpRequest -> bool
|
Return Value
Type:
BooleanTrue if the request originated from a mobile client, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpRequest. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also