List.EnableAttachments - Propriété
Gets or sets a value that specifies whether list item attachments are enabled for the list.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Property EnableAttachments As Boolean
Get
Set
'Utilisation
Dim instance As List
Dim value As Boolean
value = instance.EnableAttachments
instance.EnableAttachments = value
public bool EnableAttachments { get; set; }
Valeur de propriété
Type : System.Boolean
Returns Booleantrue if list item attachments are enabled for the list otherwise returns false. The default value is
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Value is set to true and the list does not support list item attachments. Error code: -2146232832. |