本文整理汇总了C#中System.Collections.Generic.List.Count方法的典型用法代码示例。如果您正苦于以下问题:C# System.Collections.Generic.List.Count方法的具体用法?C# System.Collections.Generic.List.Count怎么用?C# System.Collections.Generic.List.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Collections.Generic.List
的用法示例。
在下文中一共展示了System.Collections.Generic.List.Count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Display_ViewContent
//.........这里部分代码省略.........
if (IsStagingServer && folder_data.DomainStaging != string.Empty)
{
m_strAliasPageName = (string)("http://" + folder_data.DomainStaging + "/" + m_strAliasPageName);
}
else if (folder_data.IsDomainFolder)
{
m_strAliasPageName = (string)("http://" + folder_data.DomainProduction + "/" + m_strAliasPageName);
}
else
{
m_strAliasPageName = SitePath + m_strAliasPageName;
}
m_strAliasPageName = "<a href=\"" + m_strAliasPageName + "\" target=\"_blank\" >" + m_strAliasPageName + "</a>";
}
else
{
m_strAliasPageName = " [Not Defined]";
}
tdAliasPageName.InnerHtml = m_strAliasPageName;
}
else
{
phAliases.Visible = false;
phAliases2.Visible = false;
}
auto_aliaslist = m_autoaliasApi.GetListForContent(content_data.Id);
autoAliasList.InnerHtml = "<div class=\"ektronHeader\">" + m_refMsg.GetMessage("lbl automatic") + "</div>";
autoAliasList.InnerHtml += "<div class=\"ektronBorder\">";
autoAliasList.InnerHtml += "<table width=\"100%\">";
autoAliasList.InnerHtml += "<tr class=\"title-header\">";
autoAliasList.InnerHtml += "<th>" + m_refMsg.GetMessage("generic type") + "</th>";
autoAliasList.InnerHtml += "<th>" + m_refMsg.GetMessage("lbl alias name") + "</th>";
autoAliasList.InnerHtml += "</tr>";
for (i = 0; i <= auto_aliaslist.Count() - 1; i++)
{
autoAliasList.InnerHtml += "<tr class=\"row\">";
if (auto_aliaslist[i].AutoAliasType == Ektron.Cms.Common.EkEnumeration.AutoAliasType.Folder)
{
autoAliasList.InnerHtml += "<td><img src =\"" + m_refContentApi.AppPath + "images/UI/Icons/folder.png\" alt=\"" + m_refContentApi.EkMsgRef.GetMessage("lbl folder") + "\" title=\"" + m_refContentApi.EkMsgRef.GetMessage("lbl folder") + "\"/ ></td>";
}
else
{
autoAliasList.InnerHtml += "<td><img src =\"" + m_refContentApi.AppPath + "images/UI/Icons/taxonomy.png\" alt=\"" + m_refContentApi.EkMsgRef.GetMessage("generic taxonomy lbl") + "\" title=\"" + m_refContentApi.EkMsgRef.GetMessage("generic taxonomy lbl") + "\"/ ></td>";
}
if (IsStagingServer && folder_data.DomainStaging != string.Empty)
{
autoAliasList.InnerHtml = autoAliasList.InnerHtml + "<td> <a href = \"http://" + folder_data.DomainStaging + "/" + auto_aliaslist[i].AliasName + "\" target=\"_blank\" >" + auto_aliaslist[i].AliasName + " </a></td></tr>";
}
else if (folder_data.IsDomainFolder)
{
autoAliasList.InnerHtml += "<td> <a href = \"http://" + folder_data.DomainProduction + "/" + auto_aliaslist[i].AliasName + "\" target=\"_blank\" >" + auto_aliaslist[i].AliasName + " </a></td>";
}
else
{
autoAliasList.InnerHtml += "<td> <a href = \"" + SitePath + auto_aliaslist[i].AliasName + "\" target=\"_blank\" >" + auto_aliaslist[i].AliasName + " </a></td>";
}
autoAliasList.InnerHtml += "</tr>";
}
autoAliasList.InnerHtml += "</table>";
autoAliasList.InnerHtml += "</div>";
if (content_data == null)
{
content_data = m_refContentApi.GetContentById(m_intId, 0);
}
if (content_data.Type == 3333)