SPWebApplication.GetRequestPath Method

Gets the path of the Web request.

Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Protected Shared Function GetRequestPath ( _
    binding As String, _
    secure As Boolean _
) As String

Dim binding As String
Dim secure As Boolean
Dim returnValue As String

returnValue = SPWebApplication.GetRequestPath(binding, _
protected static string GetRequestPath(
    string binding,
    bool secure


  • binding
    Type: System.String
    IP address, host header, or machine name, in addition to other components associated with the URL.
  • secure
    Type: System.Boolean
    A value of true specifies that the SPWebApplication should use a secure hypertext transfer session with the specified site address.

Return Value

Type: System.String


A secure hypertext transfer session is an http Protocol session that uses the Secure Sockets Layer (SSL) encryption protocol invoked on a Web server.

See Also


SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace

Other Resources

https Protocol