Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.AddProperty Method

Adds a property to the list of metadata for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public void AddProperty(
	Object key,
	Object value


Type: System.Object
The property key to add.
Type: System.Object
The property value to add.

This method adds a property to the AllProperties property that is a key/value pair.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.