Partager via


SPList.IsContentTypeAllowed - Méthode (SPContentType)

Verifies that the list supports the specified content type.

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

Syntaxe

'Déclaration
Public Function IsContentTypeAllowed ( _
    ct As SPContentType _
) As Boolean
'Utilisation
Dim instance As SPList
Dim ct As SPContentType
Dim returnValue As Boolean

returnValue = instance.IsContentTypeAllowed(ct)
public bool IsContentTypeAllowed(
    SPContentType ct
)

Paramètres

Valeur renvoyée

Type : System.Boolean
true if the list supports the content type; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

ct is null .

Voir aussi

Référence

SPList classe

SPList - Membres

IsContentTypeAllowed - Surcharge

Microsoft.SharePoint - Espace de noms