SPList.IsContentTypeAllowed method (SPContentTypeId)

Verifies that the list supports the specified content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function IsContentTypeAllowed ( _
    id As SPContentTypeId _
) As Boolean
'Usage
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As Boolean

returnValue = instance.IsContentTypeAllowed(id)
public bool IsContentTypeAllowed(
    SPContentTypeId id
)

Parameters

Return value

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

See also

Reference

SPList class

SPList members

IsContentTypeAllowed overload

Microsoft.SharePoint namespace