WebAuditEvent.RequestInformation 属性

定义

获取与该 Web 请求关联的信息。

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

包含与该 Web 请求关联的信息的 WebRequestInformation

示例

下面的代码示例演示如何通过 WebRequestInformation 属性获取请求信息。

// Obtains the current thread information.
public WebRequestInformation GetRequestInformation()
{
    // Obtain the Web request information.
    // No customization is allowed here.
    return RequestInformation;
}
' Obtains the current thread information.
Public Function GetRequestInformation() As WebRequestInformation 
    ' Obtain the Web request information.
    ' No customization is allowed here.
    Return RequestInformation

End Function 'GetRequestInformation

注解

使用属性提供的信息 RequestInformation 来帮助发现故障的原因。

适用于

另请参阅