WebErrorEvent.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

包含有关当前线程的信息的 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

适用于