SPFile.SetProperty method

Sets the value of an item in the list of metadata for the file.

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

public void SetProperty(
	Object key,
	Object value
)

Parameters

key
Type: System.Object

The string key of the item for which to set the value.

value
Type: System.Object

The value to which the item is set.

This method sets the value of the item in the Properties property.

Show: