Freigeben über


List.EnableAttachments-Eigenschaft

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

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property EnableAttachments As Boolean
    Get
    Set
'Usage
Dim instance As List
Dim value As Boolean

value = instance.EnableAttachments

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

Eigenschaftswert

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

Ausnahmen

Ausnahme Bedingung
[Microsoft.SharePoint.SPException]

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

Siehe auch

Referenz

List Klasse

List-Member

Microsoft.SharePoint.Client-Namespace