简体   繁体   English

sharepoint:如何在“网站”列中创建列时注册事件处理程序

[英]sharepoint: how to register eventhandlers on creation of column from Site column

I am creating a custom column type in SharePoint. 我在SharePoint中创建自定义列类型。 This custom column requires some event handlers (like itemAdding etc.) to be registered with the list which is using this column. 此自定义列需要向使用此列的列表注册一些事件处理程序(例如itemAdding等)。 Now user can also create a site column of this custom column type. 现在,用户还可以创建此自定义列类型的网站列。 Now if user creates new column in a list using this site column, is there a way to register event handlers on that list?? 现在,如果用户使用此站点列在列表中创建新列,是否可以在该列表上注册事件处理程序?

嗯,有像SPField类的OnAdded()OnUpdated()之类的函数,将在添加/更新字段后立即调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM