WebRequestErrorEvent.ThreadInformation 属性

定义

获取应用程序线程信息。

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

属性值

WebThreadInformation

应用程序线程信息。

示例

下面的代码示例演示如何获取 ThreadInformation 属性值。

// Obtains the current thread information.
public string GetThreadInfo()
{
    string threadInfo = GetThreadInfo();
    return threadInfo;
}
' Obtains the current thread information.
Public Function GetThreadInfo() As String
   Dim threadInfo As String = GetThreadInfo()
   Return threadInfo
End Function 'GetThreadInfo

注解

标准线程信息由 WebThreadInformation 类定义。

适用于

另请参阅