
Customizing SharePoint
❘
13
SPMinuteSchedule schedule = new SPMinuteSchedule();
schedule.BeginSecond = 0;
schedule.EndSecond = 59;
schedule.Interval = 2;
smbJob.Schedule = schedule;
smbJob.Update();
}
Another sample use would be if a feature depends on certain data, such as a SharePoint subsite
existing, prior to it properly working. Your feature receiver could create the required subsite as part
of the activation process.
External Access
Up to this point, this chapter has focused only on solutions that exist within SharePoint and run
within the farm, but it is also common to need to access SharePoint content and interact with
SharePoint from outside of the farm. One example of such a need would be an application that
enables you to scan documents from your desktop and store them directly within SharePoint.
SharePoint provides two mechanisms to support external access. The rst, which existed in SharePoint
2007 and continues to exist in 2010, are web services. The second is Client Object Model, which is
new to SharePoint 2010, which you can access from .NET, Silverlight, or JavaScript.
The main advantage to using the Client Object Model over the web services is that rather than having
to learn a completely new way to access SharePoint content, developers can reuse much of their knowl-
edge of the server-side object model. There denitely are some differences, but in general, the Cl ...