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