This documentation is archived and is not being maintained.
HttpRequest.IsSecureConnection Property
.NET Framework 1.1
Gets a value indicting whether the HTTP connection uses secure sockets (that is, HTTPS).
[Visual Basic] Public ReadOnly Property IsSecureConnection As Boolean [C#] public bool IsSecureConnection {get;} [C++] public: __property bool get_IsSecureConnection(); [JScript] public function get IsSecureConnection() : Boolean;
Property Value
true if the connection is uses an SSL connection; otherwise, false.
Example
The following example assigns the value of the IsSecureConnection property to a Boolean variable.
[Visual Basic] Dim IsSecure As Boolean IsSecure = Request.IsSecureConnection [C#] bool IsSecure; IsSecure = Request.IsSecureConnection; [C++] bool IsSecure; IsSecure = Request->IsSecureConnection; [JScript] var isSecure : Boolean = Request.IsSecureConnection
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpRequest Class | HttpRequest Members | System.Web Namespace
Show: