This documentation is archived and is not being maintained.

HttpWorkerRequest.GetProtocol Method

When overridden in a derived class, returns the HTTP protocol (HTTP or HTTPS).

[Visual Basic]
Public Overridable Function GetProtocol() As String
public virtual string GetProtocol();
public: virtual String* GetProtocol();
public function GetProtocol() : String;

Return Value

HTTPS if the IsSecure method is true, otherwise HTTP.


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

See Also

HttpWorkerRequest Class | HttpWorkerRequest Members | System.Web Namespace