【发布时间】:2011-09-08 00:25:13
【问题描述】:
我正在尝试删除我创建的自定义内容类型,但尝试执行此操作时出现错误:
内容类型正在使用中。在 Microsoft.SharePoint.SPContentTypeCollection.DeleteFromWeb(SPContentTypeId id,字符串 strName) 在 Microsoft.SharePoint.SPContentTypeCollection.Delete(SPContentTypeId id) 在 Microsoft.SharePoint.SPContentType.Delete() 在 Microsoft.SharePoint.ApplicationPages.ManageContentTypePage.DeleteContentType() 在 Microsoft.SharePoint.ApplicationPages.ManageContentTypePage.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(字符串 eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,字符串 eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在删除正在使用该内容类型的项目后,我什至删除了该站点上所有过去甚至使用过该内容类型的文档库,但无济于事。这个网站上没有任何东西可以使用这种内容类型,所以我不确定它为什么不允许我删除它。有没有办法提醒 Sharepoint 这种内容类型不再使用,或者有什么方法可以摆脱这种内容类型?我正在尝试测试此内容类型的动态创建和使用。
提前非常感谢
【问题讨论】: