Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsSecureConnection Property

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

© 2015 Microsoft