2016-12-22 18 views
1

私はSitecore 8.1からSitecore 8.2にアップグレードしました。'Sitecore.Context + PageMode.get_IsPageEditor()'メソッドにアクセスしようとしたときのエラーを示すSitecore 8.2が失敗しました

Sitecore.Context.PageMode.IsPageEditor 

をこのためには、エラーを与えている:

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

は、私が何をしないのです私が使用していた方法がありますか?

答えて

6

Sitecore.Context.PageMode.IsPageEditor

は、サイトコア8.0アップデート-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)

サイトコア8.2アップデートではSitecore.Context.PageMode.IsPageEditorは1削除済み 使用

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 
関連する問題