共用方式為


SPList.EnableAttachments property

取得或設定一個Boolean值,指定是否可將附件加入至清單中的項目。

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

Syntax

'宣告
Public Property EnableAttachments As Boolean
    Get
    Set
'用途
Dim instance As SPList
Dim value As Boolean

value = instance.EnableAttachments

instance.EnableAttachments = value
public bool EnableAttachments { get; set; }

Property value

Type: System.Boolean
true附件可新增到清單項目 ; 如果否則,請false。

備註

EnableAttachments屬性不適用於任何具有Survey或DocumentLibrary基底類型的清單。如果您將這個屬性為true兩種類型的清單,它會擲回SPException

請參閱

參照

SPList class

SPList members

Microsoft.SharePoint namespace