Example #1
0
        public SPListItem CreateDocumentFromTemplateUsingPath(ResourcePath filePath, SPFolder targetFolder, ResourcePath templatePath)
        {
            ListItem li = _list.CreateDocumentFromTemplateUsingPath(filePath, (Folder)targetFolder.ShowOriginal(), templatePath);

            return(new SPListItem(li));
        }
Example #2
0
        public SPListItem CreateDocumentFromTemplateStream(string fileName, SPFolder targetFolder, string extension, System.IO.Stream stream)
        {
            ListItem li = _list.CreateDocumentFromTemplateStream(fileName, (Folder)targetFolder.ShowOriginal(), extension, stream);

            return(new SPListItem(li));
        }
Example #3
0
        public SPListItem CreateDocumentFromTemplateBytes(string fileName, SPFolder targetFolder, byte[] templateBytes, string extension)
        {
            ListItem li = _list.CreateDocumentFromTemplateBytes(fileName, (Folder)targetFolder.ShowOriginal(), templateBytes, extension);

            return(new SPListItem(li));
        }
Example #4
0
        public SPListItem CreateDocumentFromTemplate(string fileName, SPFolder targetFolder, string templateUrl)
        {
            ListItem li = _list.CreateDocumentFromTemplate(fileName, (Folder)targetFolder.ShowOriginal(), templateUrl);

            return(new SPListItem(li));
        }
Example #5
0
        public SPListItem CreateDocument(string name, SPFolder targetFolder, DocumentTemplateType templateType)
        {
            ListItem li = _list.CreateDocument(name, (Folder)targetFolder.ShowOriginal(), templateType);

            return(new SPListItem(li));
        }
 private void AddPermissionRecursively(SPFolder fol, SPBindingCollection bindCol) =>
 this.AddPermissionRecursively(((Folder)fol.ShowOriginal()).ListItemAllFields.ParentList, bindCol);