WebRequestInformation.RequestUrl Property


Gets the logical path of the request.

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

public string RequestUrl { get; }

Property Value

Type: System.String

The logical path of the request.

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

// Get the request URL.
public string GetRequestUrl()
    // Get the request URL.
    return (string.Format(
        "Request URL: {0}",

.NET Framework
Available since 2.0
Return to top