Create Folder in Document Library Programmatically
SPDocumentLibrary
_MyDocLibrary = (SPDocumentLibrary)_MyWeb.Lists["Library Name Here"];
SPFolderCollection
_MyFolders = _MyWeb.Folders;
_MyFolders.Add(_MyDocLibrary.RootFolder.ServerRelativeUrl + "/" + ListItemID + "/");
_MyDocLibrary.Update();
Comments
Post a Comment