SPList.IsContentTypeAllowed method (SPContentTypeId)

Verifies that the list supports the specified content type.

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

public bool IsContentTypeAllowed(
	SPContentTypeId id
)

Parameters

id
Type: Microsoft.SharePoint.SPContentTypeId

The content type identifier (ID).

Return value

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