Export (0) Print
Expand All

SPFolder.AddProperty method

Adds an element with the specified key/value pair to the metadata for the folder.

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

public void AddProperty(
	Object key,
	Object value
)

Parameters

key
Type: System.Object

The key of the element to add.

value
Type: System.Object

The value of the element to add. The value can be a null reference (Nothing in Visual Basic).

This method adds a new element with the specified key/value pair to the metadata collection of the folder, which is contained in the Properties property.

Show:
© 2014 Microsoft