开发者

Whats the difference between SPListItem["property"] and SPListItem.Properties["property"]?

开发者 https://www.devze.com 2023-02-11 03:25 出处:网络
I\'ve开发者_开发知识库 been working with the SharePoint object model and got that question.aListItem[\"property\"] is not correct

I've开发者_开发知识库 been working with the SharePoint object model and got that question.


aListItem["property"] is not correct It is aListItem["fieldName"]

So:

aListItem["property"]

will get the value of the field named "property"

and

aListitem.Properties["property"]

will get the value of the property "Property" (eg List)

0

精彩评论

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