Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub AddProperty ( _
    key As Object, _
    value As Object _
)
'Usage
Dim instance As SPFolder
Dim key As Object
Dim value As Object

instance.AddProperty(key, value)
public void AddProperty(
    Object key,
    Object value
)

Parameters

  • value
    Type: System.Object

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

Remarks

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.

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace