List.EnableAttachments 属性

Gets or sets a value that specifies whether list item attachments are enabled for the list.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Property EnableAttachments As Boolean
    Get
    Set
用法
Dim instance As List
Dim value As Boolean

value = instance.EnableAttachments

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

属性值

类型:System.Boolean
Returns Booleantrue if list item attachments are enabled for the list otherwise returns false. The default value is

异常

异常 条件
[Microsoft.SharePoint.SPException]

Value is set to true and the list does not support list item attachments. Error code: -2146232832.

另请参阅

引用

List 类

List 成员

Microsoft.SharePoint.Client 命名空间