SPWeb.AddProperty Method
SharePoint 2010
Adds a property to the list of metadata for the website.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- key
- Type: System.Object
The property key to add.
- value
- Type: System.Object
The property value to add.
This method adds a property to the AllProperties property that is a key/value pair.