using TDS = Tridion.ContentManager.Interop.TDS;
using Tridion.ContentManager.Interop.TDS;
using Tridion.ContentManager.Interop.TDSDefines;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Xml.Linq;
namespace ConsumerHealth.Web
{
class Common
{
public Common()
{
}
public TridionCollection<Publication> getAllPublicationList()
{
TDSE objTom = new TDSE();
try
{
TridionCollection<Publication> publications = new TridionCollection<Publication>(objTom.GetListPublications(ListColumnFilter.XMLListIDAndTitle));
return publications;
}
catch (Exception ex)
{
throw ex;
}
finally
{
Marshal.ReleaseComObject(objTom);
}
}
}
}public TridionCollection<Publication> getAllPublicationList(),它显示错误TridionCollection找不到,我遗漏了什么,我应该使用哪个dll,除了这些都工作得很好。
发布于 2012-09-05 17:48:49
我认为Tridion Collection是用户定义的类,它不存在于任何Tridion dll中。
发布于 2012-09-05 17:49:25
这不是Content Manager提供的类。
在谷歌上快速搜索一下,就会发现2009年的"Tridion Generic .NET Collections“扩展提供了这个功能。我的猜测是你必须在2011年重写它。
发布于 2012-09-05 20:22:11
您需要由您在SDLTridionWorld.com的好友提供的this程序集。
这是为Tridion 2009编写的(前面已经提到过),据我所知,它可能不会在Tridion 2011上工作。鉴于它是open source,请根据需要随意更改和调整它,并将其报告回SDL Tridion World,以便他们可以使用较新的版本更新它。
https://stackoverflow.com/questions/12278425
复制相似问题