共用方式為


SPFile.SetProperty method

設定檔案的中繼資料的清單中的某個項目的值。

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

Syntax

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

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

參數

  • key
    Type: System.Object

    要為其設定值之項目的字串索引鍵。

備註

這個方法會設定Properties屬性中的項目值。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace