SPList.IsContentTypeAllowed - Méthode (SPContentTypeId)
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 ( _
id As SPContentTypeId _
) As Boolean
'Utilisation
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As Boolean
returnValue = instance.IsContentTypeAllowed(id)
public bool IsContentTypeAllowed(
SPContentTypeId id
)
Paramètres
id
Type : Microsoft.SharePoint.SPContentTypeIdThe content type identifier (ID).
Valeur renvoyée
Type : System.Boolean
true if the list supports the content type; otherwise, false.