Exemplo n.º 1
0
        public void CopyFile(ISPCFolder folder, ISPCItem item, string newFileName)
        {
            EUListItem listItem   = (EUListItem)item;
            EUFolder   listFolder = (EUFolder)folder;

            string folderPath = listFolder.WebUrl + "/" + listFolder.FolderPath;
            string webUrl     = listFolder.WebUrl;
            string listName   = listFolder.ListName;

            SharePointCopyWS.CopyResult[] myCopyResultArray = null;
            SharePointManager.CopyFile(listFolder.SiteSetting, webUrl, listItem.URL, folderPath + "/" + newFileName, out myCopyResultArray);
        }