Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPWeb.GetProperty method

Gets the value of a property with the specified key from the list of metadata for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Object GetProperty(
	Object key


Type: System.Object

The property key to retrieve.

Return value

Type: System.Object
The value of the property.

This method retrieves the value of the specified property from the AllProperties property that is a key/value pair.

© 2015 Microsoft