Share via


WebRequestInformation.RequestPath 屬性

定義

取得 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

適用於