Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies that the list supports the specified content type.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function IsContentTypeAllowed ( _
ct As SPContentType _
) As Boolean
'Usage
Dim instance As SPList
Dim ct As SPContentType
Dim returnValue As Boolean
returnValue = instance.IsContentTypeAllowed(ct)
public bool IsContentTypeAllowed(
SPContentType ct
)
ct
Type: Microsoft.SharePoint.SPContentTypeThe content type.
Type: System.Boolean
true if the list supports the content type; otherwise, false.
Exception | Condition |
---|---|
ArgumentNullException | ct is null . |