Sitecore 8.2 显示错误尝试访问方法 'Sitecore.Context+PageMode.get_IsPageEditor()' 失败
Sitecore 8.2 showing error attempt to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed
我已经从 Sitecore 8.1 升级到 Sitecore 8.2。我有一个正在使用的方法:
Sitecore.Context.PageMode.IsPageEditor
为此它给出了错误:
attempt by method METHOD_NAME to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed.
我错过了什么?
Sitecore.Context.PageMode.IsPageEditor
自 Sitecore 8.0 Update-6 起在 Sitecore.Kernel 中已弃用,请参阅 release notes:
Deprecated and removed functionality
The properties IsPageEditor, IsPageEditorDesigning and
IsPageEditorEditing in the class Context.PageMode from Sitecore
namespace have been deprecated in favor of the new introduced
properties IsExperienceEditor and IsExperienceEditorEditing. Old
properties will be removed in one of the future major versions.
(438475)
在 Sitecore 8.2 更新 1 中删除了 Sitecore.Context.PageMode.IsPageEditor
使用
Sitecore.Context.PageMode.IsExperienceEditor
同样适用于:
IsPageEditor, Obsolete Use IsExperienceEditor instead
IsPageEditorClassic, Deprecated always false
IsPageEditorDesigning, Obsolete Use IsExperienceEditorEditing instead
IsPageEditorEditing, Obsolete Use IsExperienceEditorEditing instead
IsPageEditorNavigating, Deprecated always false
我已经从 Sitecore 8.1 升级到 Sitecore 8.2。我有一个正在使用的方法:
Sitecore.Context.PageMode.IsPageEditor
为此它给出了错误:
attempt by method METHOD_NAME to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed.
我错过了什么?
Sitecore.Context.PageMode.IsPageEditor
自 Sitecore 8.0 Update-6 起在 Sitecore.Kernel 中已弃用,请参阅 release notes:
Deprecated and removed functionality
The properties IsPageEditor, IsPageEditorDesigning and IsPageEditorEditing in the class Context.PageMode from Sitecore namespace have been deprecated in favor of the new introduced properties IsExperienceEditor and IsExperienceEditorEditing. Old properties will be removed in one of the future major versions. (438475)
在 Sitecore 8.2 更新 1 中删除了 Sitecore.Context.PageMode.IsPageEditor 使用
Sitecore.Context.PageMode.IsExperienceEditor
同样适用于:
IsPageEditor, Obsolete Use IsExperienceEditor instead
IsPageEditorClassic, Deprecated always false
IsPageEditorDesigning, Obsolete Use IsExperienceEditorEditing instead
IsPageEditorEditing, Obsolete Use IsExperienceEditorEditing instead
IsPageEditorNavigating, Deprecated always false