WebRequestInformation.RequestUrl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
它會取得請求的邏輯路徑。
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