문제

I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted".

Everything works fine for all the existing sites. But suppose a client adds 5-10 sites? How should I go about attaching the event handlers to new sites which are created?

I thought of going for Job Schedulers which work on attaching every minute or second.. Or is there another approach? Please provide links if any.

도움이 되었습니까?

해결책

It sounds like you want to use Feature Stapling to bind your feature to new sites.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top