2016-12-22 26 views
1

Я обновился с Sitecore 8.1 до Sitecore 8.2. У меня есть метод, в котором я использую:Sitecore 8.2, показывающий ошибку, пытающуюся получить доступ к методу 'Sitecore.Context + PageMode.get_IsPageEditor()' не удалось

Sitecore.Context.PageMode.IsPageEditor 

Для этого он дает ошибку:

attempt by method METHOD_NAME to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed. 

Что мне не хватает?

ответ

6

Sitecore.Context.PageMode.IsPageEditor

осуждается в Sitecore.Kernel так Sitecore 8.0 Update-6 см 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