WebRequestInformation.RequestUrl 属性

定义

获取请求的逻辑路径。

public:
 property System::String ^ RequestUrl { System::String ^ get(); };
public string RequestUrl { get; }
member this.RequestUrl : string
Public ReadOnly Property RequestUrl As String

属性值

请求的逻辑路径。

注解

下面的代码示例演示如何获取 Web 请求逻辑路径。

// Get the request URL.
public string GetRequestUrl()
{
    // Get the request URL.
    return (string.Format(
        "Request URL: {0}",
        RequestInformation.RequestUrl));
}
' Get the request URL.
Public Function GetRequestUrl() As String
   ' Get the request URL.
     Return String.Format("Request URL: {0}", _
     RequestInformation.RequestUrl)
End Function 'GetRequestUrl

适用于