logo
  • 教程列表
  • SO官方文档
  • 诊断断言
    • 参数检查
    • 确保项目处于编辑模式
    • 确保两个值相等
    • 确保值为 true 或 false
    • ResultNotNull
    • 必需对象
    • NullEmpty 检查
    • 安全断言
  1. StackOverflow 文档
  2. sitecore 教程
  3. 诊断断言
  4. 确保项目处于编辑模式

确保项目处于编辑模式

Created: November-22, 2018

检查传递的 Item 是否处于编辑模式。如果没有,它会抛出一个 EditingNotAllowedException。

Assert.IsEditing(Sitecore.Context.Item);
  • 确保两个值相等
  • 参数检查

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明