語言

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-request 邏輯路徑。

// 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

適用於