Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the value of an item in the list of metadata for the file.
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 SPFile
Dim key As Object
Dim value As Object
instance.SetProperty(key, value)
public void SetProperty(
    Object key,
    Object value
)
Parameters
key
Type: System.ObjectThe string key of the item for which to set the value.
value
Type: System.ObjectThe value to which the item is set.
Remarks
This method sets the value of the item in the Properties property.