Share via


SPList.EnableAttachments - Propriété

Obtient ou définit une valeur Boolean qui spécifie si les pièces jointes peuvent être ajoutés aux éléments de la liste.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Property EnableAttachments As Boolean
    Get
    Set
'Utilisation
Dim instance As SPList
Dim value As Boolean

value = instance.EnableAttachments

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

Valeur de propriété

Type : System.Boolean
true si les pièces jointes peuvent être ajoutées aux éléments de liste ; dans le cas contraire, false.

Remarques

The EnableAttachments property does not apply to any list that has a base type of Survey or DocumentLibrary. If you set this property to true for either type of list, it throws an SPException.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms