3,242
社区成员
发帖
与我相关
我的任务
分享
public override void ItemAdding(SPItemEventProperties properties)
{
properties.ErrorMessage = "禁止添加!";
properties.Cancel = true;
}
public override void ItemDeleting(SPItemEventProperties properties)
{
properties.ErrorMessage = "禁止删除";
properties.Cancel = true;
}
错误
禁止删除
Microsoft SharePoint Foundation 疑难解答。
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
<nativehr>0x81020089</nativehr><nativestack></nativestack>禁止添加!
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Runtime.InteropServices.COMException: <nativehr>0x81020089</nativehr><nativestack></nativestack>禁止添加,请选择另外的名字!
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
为什么添加的时候,会是一个出错页面呢?
哪个达人知道?告之.