How to copy SPListitem from one SPList to Another SPList

后端 未结 4 1086
野的像风
野的像风 2021-01-25 09:39

I have requirement to copy items from one SPList to another,

Here is the code which is not working:

public void CopyList(SPList src)
{
    //Copy items f         


        
4条回答
  •  逝去的感伤
    2021-01-25 10:00

    The SPListItem type has a CopyTo method that will do what you want.

    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.copyto.aspx

提交回复
热议问题