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)

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.Object

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

Remarks

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

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace