SPList.IsContentTypeAllowed-Methode (SPContentTypeId)
Überprüft, ob die Liste den angegebenen Inhaltstyp unterstützt.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function IsContentTypeAllowed ( _
id As SPContentTypeId _
) As Boolean
'Usage
Dim instance As SPList
Dim id As SPContentTypeId
Dim returnValue As Boolean
returnValue = instance.IsContentTypeAllowed(id)
public bool IsContentTypeAllowed(
SPContentTypeId id
)
Parameter
id
Typ: Microsoft.SharePoint.SPContentTypeIdDer Content-Type-Bezeichner (ID).
Rückgabewert
Typ: System.Boolean
true Wenn die Liste den Inhaltstyp unterstützt; andernfalls false.