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

  • 關於本站
  • 免責聲明