SPWeb.SetProperty Method

Sets the value of a property with the specified key in 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

Syntax

'Declaration
Public Sub SetProperty ( _
    key As Object, _
    value As Object _
)
'Usage
Dim instance As SPWeb
Dim key As Object
Dim value As Object

instance.SetProperty(key, value)
public void SetProperty(
    Object key,
    Object value
)

Parameters

Remarks

This method updates the value of the specified property in the AllProperties property.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace