private void CreateContentList(string parentPath, string name, string listDef) { Node parent = Node.LoadNode(parentPath); ContentList contentlist = new ContentList(parent); contentlist.Name = name; contentlist.ContentListDefinition = listDef; contentlist.AllowChildTypes(new[] { "Folder", "Car" }); contentlist.Save(); }