WebRequestInformation.RequestPath 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 Web 要求的實體路徑。
public:
property System::String ^ RequestPath { System::String ^ get(); };
public string RequestPath { get; }
member this.RequestPath : string
Public ReadOnly Property RequestPath As String
屬性值
要求的實體路徑。
範例
下列程式碼範例示範如何取得 Web 要求路徑。
// Get the request path.
public string GetRequestPath()
{
// Get the request path.
return (string.Format(
"Request path: {0}",
RequestInformation.RequestPath));
}
' Get the request path.
Public Function GetRequestPath() As String
' Get the request path.
Return String.Format( _
"Request path: {0}", RequestInformation.RequestPath)
End Function 'GetRequestPath