Export (0) Print
Expand All

SPList.IsContentTypeAllowed Method (SPContentType)

Verifies that the list supports the specified content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public bool IsContentTypeAllowed(
	SPContentType ct
)

Parameters

ct
Type: Microsoft.SharePoint.SPContentType

The content type.

Return Value

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

ExceptionCondition
ArgumentNullException

ct is null .

Show:
© 2014 Microsoft