本文整理汇总了C#中DotNetNuke.Common.Lists.ListController.GetListInfo方法的典型用法代码示例。如果您正苦于以下问题:C# ListController.GetListInfo方法的具体用法?C# ListController.GetListInfo怎么用?C# ListController.GetListInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DotNetNuke.Common.Lists.ListController
的用法示例。
在下文中一共展示了ListController.GetListInfo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetList
private ListInfo GetList(string key, bool update)
{
var ctlLists = new ListController();
int index = key.IndexOf(":", StringComparison.Ordinal);
string listName = key.Substring(index + 1);
string parentKey = Null.NullString;
if (index > 0)
{
parentKey = key.Substring(0, index);
}
if (update)
{
ListName = listName;
ParentKey = parentKey;
}
return ctlLists.GetListInfo(listName, parentKey, ListPortalID);
}
示例2: GetList
private ListInfo GetList(string key, bool update)
{
var ctlLists = new ListController();
int index = key.IndexOf(":");
string _ListName = key.Substring(index + 1);
string _ParentKey = Null.NullString;
if (index > 0)
{
_ParentKey = key.Substring(0, index);
}
if (update)
{
ListName = _ListName;
ParentKey = _ParentKey;
}
return ctlLists.GetListInfo(_ListName, _ParentKey, ListPortalID);
}
示例3: Item
// Another method, get Lists on demand
public object Item(string key, bool Cache)
{
int index;
object obj = null;
bool itemExists = false;
try //Do validation first
{
if (mKeyIndexLookup[key.ToLower()] != null)
{
itemExists = true;
}
}
catch (Exception exc)
{
Logger.Error(exc);
}
//key will be in format Country.US:Region
if (!itemExists)
{
var ctlLists = new ListController();
string listName = key.Substring(key.IndexOf(":") + 1);
string parentKey = key.Replace(listName, "").TrimEnd(':');
ListInfo listInfo = ctlLists.GetListInfo(listName, parentKey);
//the collection has been cache, so add this entry list into it if specified
if (Cache)
{
Add(listInfo.Key, listInfo);
return listInfo;
}
}
else
{
index = Convert.ToInt32(mKeyIndexLookup[key.ToLower()]);
obj = base.List[index];
}
return obj;
}
示例4: InitList
/// <summary>
/// Loads top level entry list
/// </summary>
/// <history>
/// [tamttt] 20/10/2004 Created
/// </history>
private void InitList()
{
ListController ctlLists = new ListController();
string listName = SelectedKey.Substring(SelectedKey.IndexOf(":") + 1);
string parentKey = SelectedKey.Replace(listName, "").TrimEnd(':');
selListInfo = ctlLists.GetListInfo(listName, parentKey);
SelectedText = selListInfo.DisplayName;
EnableSortOrder = selListInfo.EnableSortOrder;
SystemList = selListInfo.SystemList;
}