共用方式為


SPFile.AddProperty method

將項目加入至中繼資料檔案的清單。

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

Syntax

'宣告
Public Sub AddProperty ( _
    key As Object, _
    value As Object _
)
'用途
Dim instance As SPFile
Dim key As Object
Dim value As Object

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

參數

  • key
    Type: System.Object

    要加入之項目的字串索引鍵。

備註

這個方法會加入key/value至Properties屬性配對。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace