SharePoint Event Receiver 网站范围和绑定的列表范围

来源:互联网 发布:python import thread 编辑:程序博客网 时间:2024/05/19 19:43
实践证明:
  1.  Feature scope = Site
    1. If receiver scope is set to site = provision receiver to all lists of site collection (list template/url is not taken into consideration)!
    2. If receiver scope is set to web = provision receiver to all lists of the particular web (list template/url is not taken into consideration)!
  2. Feature scope =  Web
    1. If list template and list url are not set =provision receiver to all lists of site collection (list template/url is not taken into consideration)!
    2. List template = provision to all lists of correct type
    3. List url = provision receiver to the particular list

Feature Scope

Event Receiver Scope

ListTemplateId

ListUrl

Event Receiver的网站范围和绑定的列表范围

Site

Site

Site

*

*

All Lists of site collection (list template/url不作考虑)

 

Web

*

*

All Lists of the specified web (list template/url不作考虑)

Web

 

 

*

Empty

Empty

All Lists of site collection (list template/url不作考虑)

 

*

ListTemplateId =851

Empty

所有TemplateId = 851的列表都绑定

 

*

Empty

ListUrl="Lists/TaskList"

只绑定特定列表TaksList


0 0