CmisSync.CmisTree.PredefinedNodeLoader.LoadSubFolderDelegate C# (CSharp) Méthode

LoadSubFolderDelegate() public static méthode

Loads a tree of remote sub folder with the depth of 2
public static LoadSubFolderDelegate ( CmisRepoCredentials credentials, Node root ) : List
credentials CmisSync.Lib.Config.CmisRepoCredentials
root Node
Résultat List
        public static List<Node> LoadSubFolderDelegate(CmisRepoCredentials credentials, Node root)
        {
            CmisUtils.NodeTree tree = CmisUtils.GetSubfolderTree(credentials, root.Path, 2);
            List<Node> children = CreateSubTrees(tree.Children, null);
            foreach (Node child in children)
                child.Parent = root;
            return children;
        }