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

适用于