开发者

c# Insert/Update multiple lookup values to an SPListItem

开发者 https://www.devze.com 2023-02-13 18:15 出处:网络
sharepoint allows multiple开发者_高级运维 items to be added for a lookup column type. Is there a good article that has the code snippet to update or add lookup values?Take a look at this object SPFiel

sharepoint allows multiple开发者_高级运维 items to be added for a lookup column type. Is there a good article that has the code snippet to update or add lookup values?


Take a look at this object SPFieldLookupValueCollection. What you need to do is to create an instance of this class, fill the collection with SPFieldLookupValue objects and assign the collection to the field, that's it.

http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/02c889fc-6b15-4a60-b0f6-ed5d020ec6c2

0

精彩评论

暂无评论...
验证码 换一张
取 消