Monday 26 May 2014

Diff between item.attachment.addnow() and item.attachment.add()


addnow() no need of item.update()
add() need to call item.update() method
Ex:attachmentCollection.Add(fileUpload.FileName, attachmentContent);
//no need of Update
attachmentCollection.AddNow(fileUpload.FileName, attachmentContent);
item.update();//Need update