实践证明:
- Feature scope = Site
- If receiver scope is set to site = provision receiver to all lists of site collection (list template/url is not taken into consideration)!
- If receiver scope is set to web = provision receiver to all lists of the particular web (list template/url is not taken into consideration)!
- Feature scope = Web
- 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)!
- List template = provision to all lists of correct type
- 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 |