本文整理汇总了C#中Thread.get_thread_Description方法的典型用法代码示例。如果您正苦于以下问题:C# Thread.get_thread_Description方法的具体用法?C# Thread.get_thread_Description怎么用?C# Thread.get_thread_Description使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thread
的用法示例。
在下文中一共展示了Thread.get_thread_Description方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getThreads
public void getThreads()
{
DataTable DT = theCake.getThreads(Int32.Parse(Request.QueryString["ID"].ToString()));
foreach (DataRow DR in DT.Rows)
{
Thread thrd = new Thread(Int32.Parse(DR["threadID"].ToString()));
string threadItem = "";
threadItem += "<div style=\"border:1px solid #646469;\">" +
"<div align=\"center\">" +
"<section style=\"display:table; width:90%; margin:10px; text-align:left;\">" +
"<section style=\"display:inline-block; width:90%; height:100%; vertical-align:top;\">" +
"<div style=\"font-variant:small-caps; font-size:1.2em;\">" +
"<a href=\"Threads.aspx?ID=" + thrd.get_threadID().ToString() + "\">" + thrd.get_thread_Name() + "</a>" +
"</div>" +
"<hr style=\"margin:2px;\" />" +
"<div style=\"font-size:.9em;\">" +
thrd.get_thread_Description() +
"</div>" +
"<br />" +
"<div style=\"font-size:.6em;\">" +
"created on " + thrd.get_createdTimestamp().ToShortDateString() + " by " + theCake.getUserAlias(thrd.get_createdBy()) + "." +
"</div>" +
"</section>" +
"<section style=\"display:inline-block; width:10%; height:100%;\">" +
"<div class=\"widget pull-right\" style=\"width:100%;\">" +
"<div align=\"center\">" +
"<p><strong>Post Count</strong></p>" +
thrd.count().ToString() +
"</div>" +
"</div>" +
"</section>" +
"</section>" +
"</div>" +
"</div>";
lit_ThreadList.Text += threadItem;
}
}