WebRequestInformation.RequestPath Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the physical path of the Web request.

Namespace:   System.Web.Management
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property RequestPath As String

Property Value

Type: System.String

The physical path of the request.

The following code example shows how to get the Web-request path.

' Get the request path.
Public Function GetRequestPath() As String
   ' Get the request path.
     Return String.Format( _
     "Request path: {0}", RequestInformation.RequestPath)
End Function 'GetRequestPath

.NET Framework
Available since 2.0
Return to top