Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting SharePoint List Metadata

Metadata seems to be used frequently to describe a SharePoint list's structure. That structure allows the storage of data at the list item level.

How can I specify information about the list itself without relying on an additional column?

Ideally I want something like SPList.Properties ["Mykey"] = "MyValue"

PropertiesXml isn't settable but is there any way to alter the data it returns?

like image 703
Michhes Avatar asked Aug 15 '26 11:08

Michhes


1 Answers

There is no property bag on the SPList object itself, however you can use the one on SPList.RootFolder. Its SPFolder object has a Properties property.

like image 155
Alex Angas Avatar answered Aug 17 '26 11:08

Alex Angas