When uploading a file to a SharePoint library through code, you sometimes want to set item properties at the same time the document is created. To achieve this you simply populate a Hashtable object and pass this into the Add method of the SPFileCollection object: public SPFile UploadDocument(SPDocumentLibrary library, string filename, string docTitle, byte[] fileBinary) […]
↧