共用方式為


SPList.IsContentTypeAllowed method (SPContentTypeId)

確認清單支援指定的內容類型。

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

Syntax

'宣告
Public Function IsContentTypeAllowed ( _
    id As SPContentTypeId _
) As Boolean
'用途
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As Boolean

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

參數

傳回值

Type: System.Boolean
true如果清單支援之內容的類型 ;否則,請false。

請參閱

參照

SPList class

SPList members

IsContentTypeAllowed overload

Microsoft.SharePoint namespace