c# - Scope of a feature activated Custom Sharepoint-Timer Job -


So I'm developing a custom timer job for Sharepoint using SPJobDefinition.

This work is active through a feature receiver.

As I have understood that the SPAbob Diffination runs on web-application.

If the area of ​​convenience is site or web based, then code-wise determine which site is active in customer service?

To achieve a clear picture of what I am trying to achieve, the job is capable of determining what a custom "alert me" notification job is, what I want to do Which site has enabled this feature, to determine which sites can subscribe to alert notifications.

But I do not know which sites

Code is below You used to describe what you are describing:

  Execute public override zero (Guidance Targets Instance ID) {foreach (SPS ite site in this site.web application.Sites) { Try (if (SPSite.Exists (new site.Url) & amp; tap! = Site.features [feature id.ltmjb]) {try (ExecuteJob (site);} hold (Exception preceding) {// Have Ndall exception}}} Finally {site.Dispose (); FeatureId.AlertMeJob represents the feature with a GUID feature receiver that creates a job schedule (if it was not already present). 


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -