SPList.IsContentTypeAllowed-Methode (SPContentType)
Ü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 ( _
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
)
Parameter
ct
Typ: Microsoft.SharePoint.SPContentTypeDer Inhaltstyp.
Rückgabewert
Typ: System.Boolean
true Wenn die Liste den Inhaltstyp unterstützt; andernfalls false.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | ct ist Null . |