2
Sharepoint에서 목록을 복제하려고합니다. (Lists.Add은()) 나는 오류목록을 만들려고 할 때 "작업이 유효하지 않습니다."
operation is not valid due to the current state of the object sharepoint 2010
그 문제를 해결하기 위해 할 수있는 어떤 생각을 수있는 마지막 코드 줄에서
private static void CloneList(SPList sourceList, string targetListName)
{
SPWeb web = sourceList.ParentWeb;
web.AllowUnsafeUpdates = true;
Guid targetListId;
targetListId = web.Lists.Add(targetListName, sourceList.Description, sourceList.BaseTemplate);
// irrelevant stuff
}
:이 코드는? ...