System.Web Namespace HttpRequest Class
Gets a value indicating whether the user has been authenticated.
[ VB ]
Public ReadOnly Property IsAuthenticated As Boolean
[ C# ]
public bool IsAuthenticated {get;}
[ C++ ]
public: __property bool get_IsAuthenticated ( );
[ JScript ]
public function get IsAuthenticated ( ) : Boolean;
true if authenticated; otherwise false.
The following example takes action only if the user has been authenticated.
if ( Request.IsAuthenticated ) {
// ... do whatever here ...
}
If Request.IsAuthenticated Then
' ... do whatever here ...
End if |
|
C# |
VB |
Show me
HttpRequest Members