Partager via


List.ContentTypes - Propriété

Gets the content types that are associated with 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 ReadOnly Property ContentTypes As ContentTypeCollection
    Get
'Utilisation
Dim instance As List
Dim value As ContentTypeCollection

value = instance.ContentTypes
public ContentTypeCollection ContentTypes { get; }

Valeur de propriété

Type : Microsoft.SharePoint.Client.ContentTypeCollection
A ContentTypeCollection collection that contains the content types that are associated with the list.

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

Remarques

It must not be une référence Null (Rien dans Visual Basic).

Voir aussi

Référence

List classe

List - Membres

Microsoft.SharePoint.Client - Espace de noms