SPWeb.AddProperty method

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

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

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

instance.AddProperty(key, value)

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.

Show: