SPFolder.SetProperty Method
Sets the value of the element with the specified key in the metadata for the folder.
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 SPFolder
Dim key As Object
Dim value As Object
instance.SetProperty(key, value)
public void SetProperty(
Object key,
Object value
)
Parameters
key
Type: System.ObjectThe key of the element to set.
value
Type: System.ObjectThe value to set.
Remarks
This method sets the value of the element with the key specified by the key parameter in the metadata collection of the folder, which is contained in the Properties property