I'm working on a script to clean up our document tree profiles.
The code below shows how I am able to pull the profiles associated to an IDocumentTree item.
However, I can not seem to set or add or remove profiles to said IDocumentTree instance.
Is this possible?
Code: Select all
foreach (IDocumentTreeInfo treeInfo in DocumentManager.DocumentTrees)
{
IDocumentTree documentTree = DocumentManager.GetDocumentTree(treeInfo);
Console.WriteLine(treeInfo.Name);
foreach (IProfileInfo profile in documentTree.Profiles)
{
Console.WriteLine(profile);
}
Console.ReadLine();
}