WebRequestInformation.RequestPath Property

 

Gets the physical path of the Web request.

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

public string RequestPath { get; }

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 string GetRequestPath()
{
    // Get the request path.
    return (string.Format(
        "Request path: {0}",
        RequestInformation.RequestPath));
}

.NET Framework
Available since 2.0
Return to top
Show: