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
public bool IsSecureConnection {get;}
public: __property bool get_IsSecureConnection();
public function get IsSecureConnection() : Boolean;

Property Value

true if the connection is uses an SSL connection; otherwise, false.


The following example assigns the value of the IsSecureConnection property to a Boolean variable.

[Visual Basic] 
Dim IsSecure As Boolean
 IsSecure = Request.IsSecureConnection

bool IsSecure;
 IsSecure = Request.IsSecureConnection;

bool IsSecure;
 IsSecure = Request->IsSecureConnection;

var isSecure : Boolean = Request.IsSecureConnection


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

© 2014 Microsoft. All rights reserved.