Any developer interested in writing code targeting the Share Point platform should read this article.
Scott and Mike illustrate many great practices and they warn you about the times that you shouldn't automatically dispose of every disposable object.
This article is excerpted from Chapter 5, "Programming Windows Share Point Services," from the book Professional Share Point 2007 Development (Wrox, 2007, ISBN: 978-0-470-11756-9) by John Holliday, John Alexander, Jeff Julian, Eli Robillard, Brendon Schwartz, Matt Ranlett, J. Matt Ranlett, a SQL Server MVP, has been a fixture of the Atlanta . A founding member of the Atlanta Dot Net Regular Guys ( Matt has formed and leads several area user groups.
Matt spends dozens of hours after work on local and national community activities such as the Share Point 1, 2, 3! Another recent article excerpted from this book is Creating Content Type Metadata for Share Point 2007 Document Management Solutions, by John Holliday.
Scott Harris and Mike Ammerlaan from Microsoft have written an excellent article outlining these best practices recommendations titled Best Practices: Using Disposable Windows Share Point Services Objects.As a developer interested in catching Share Point events, you are no longer limited to only document libraries and forms libraries.Now you have the ability to catch events on practically every list type that Share Point offers, as well as at the site level, list or library level, and at the individual file level.Triggering actions include activities such as adding, updating, deleting, moving, checking in and checking out.A Share Point event receiver is bound to a Share Point object—the event host—and responds to a user action by triggering event receiver code.