WebErrorEvent.ThreadInformation 属性
定义
获取应用程序线程信息。Gets the application-thread information.
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 对象。A WebThreadInformation object that contains information about the current thread.
示例
下面的代码示例演示如何获取应用程序 ThreadInformation 值。The following code example shows how to obtain the application ThreadInformation value.
// 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