📜  sitecore 渲染参数获取 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:31.809000             🧑  作者: Mango

代码示例1
var selectedItemId = RenderingContext.Current.Rendering.Parameters["Background"];
var selectedItem = RenderingContext.Current.ContextItem.Database.GetItem(ID.Parse(Guid.Parse(selectedItemId)));
    var parameter = selectedItem["Value"];