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
)
參數
id
Type: Microsoft.SharePoint.SPContentTypeId內容類型識別碼 (ID)。
傳回值
Type: System.Boolean
true如果清單支援之內容的類型 ;否則,請false。