WebErrorEvent.RequestInformation 属性

定义

获取应用程序请求信息。

public:
 property System::Web::Management::WebRequestInformation ^ RequestInformation { System::Web::Management::WebRequestInformation ^ get(); };
public System.Web.Management.WebRequestInformation RequestInformation { get; }
member this.RequestInformation : System.Web.Management.WebRequestInformation
Public ReadOnly Property RequestInformation As WebRequestInformation

属性值

WebRequestInformation

包含有关当前请求的信息的 WebRequestInformation 对象。

示例

下面的代码示例演示如何获取 RequestInformation 值。

// Obtains the current request information.
public string GetRequestInfo()
{
    string reqInfo = GetRequestInfo();
    return reqInfo;
}
' Obtains the current request information.
Public Function GetRequestInfo() As String
   Dim reqInfo As String = GetRequestInfo()
   Return reqInfo
End Function 'GetRequestInfo

适用于