WebRequestErrorEvent.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
属性值
应用程序线程信息。The application thread information.
示例
下面的代码示例演示如何获取 ThreadInformation 属性值。The following code example shows how to obtain the ThreadInformation property 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
注解
标准线程信息由 WebThreadInformation 类定义。The standard thread information is defined by the WebThreadInformation class.