共用方式為


WebRequestInformation.RequestUrl 屬性

定義

取得要求的邏輯路徑。

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

屬性值

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

適用於