ドキュメントではなくオブジェクトのコードを書いていることを除いて、私は基本的にこのガイドに従っています。これが私のコードです:
using CMS.TreeEngine;
using CMS.SettingsProvider;
[CustomObjectEvents]
public partial class CMSModuleLoader
{
    /// <summary>
    /// Attribute class that ensures the loading of custom handlers
    /// </summary>
    private class CustomObjectEventsAttribute : CMSLoaderAttribute
    {
        /// <summary>
        /// Called automatically when the application starts
        /// </summary>
        public override void Init()
        {
            // Assigns custom handlers to the appropriate events
            ObjectEvents.GetContent.Execute += Category_Get_Content; //error is here
        }
        private void Category_Get_Content(object sender, DocumentEventArgs e)
        {
            // Add custom actions here
        }
    }
}
上記の行は、コンパイル時エラーをスローしています。
エラー1メソッドグループ'Category_Get_Content'を非デリゲートタイプ'CMS.SettingsProvider.SimpleObjectHandler'に変換できません。メソッドを呼び出すつもりでしたか?C:\ APPLICATIONS \ DEVELOPMENT \ KENTICO6 \ WebPartDev \ wwwroot \ App_Code \ Blank Site \ SearchByCategory.cs 22 40 C:... \ wwwroot \
何か案は?