Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpRequest.IsSecureConnection Property

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:
© 2014 Microsoft. All rights reserved.