문제

Will there be any problems (e.g. save conflicts) if several users at the same time will try to programmatically add SPListItem to SPList?

public override void Add(Contract contract)
{
    var listItem = List.Items.Add();
    GetListItem(contract, listItem);
    listItem.SystemUpdate(false);
}

protected override void GetListItem(Contract contract, SPListItem listItem)
{   
    listItem[Fields.Title] = contract.Name;
    listItem[Fields.BeneficiaryBirthdate] = contract.BeneficiaryBirthdate;
    ...
}
도움이 되었습니까?

해결책

No,

There will be no save conflict when multiple users will add new item to the SharePoint List.

다른 팁

As it is new Item, it wont give any error! if its update then you will get error if same item is getting updated by different users at same time

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top