I’ve just tested the new <PropertyBag> Caml tag available in SharePoint 2010 as illustrated below :
But again, as in SharePoint 2010, I’ve forgotten that if you try to grab the value from the SPWeb.Properties collection (in my specific case web.properties[“myCustomproperty”] , you will get null as the key name must fully be lowercase.
The recommendation is to use the SPWeb.AllProperties collection :
web.AllProperties[myCustomproperty] (this works with uppercase characters).
The recommendation is to use AllProperties (Properties is still kept for compatibility).