logo
  • 教程列表
  • SO官方文檔
  • 模板
    • 按 ID 獲取 Sitecore 模板項
    • 按名稱獲取 Sitecore 模板項
  1. StackOverflow 文件
  2. sitecore 教程
  3. 模板
  4. 按名稱獲取 Sitecore 模板項

按名稱獲取 Sitecore 模板項

Created: November-22, 2018

使用 GetTemplate 方法輸入模板的名稱以獲取模板。

TemplateItem templateItem = Sitecore.Context.Database.GetTemplate("NameOfTheTemplate");
  • 按 ID 獲取 Sitecore 模板項

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明