Hendrik Bulens All about .NET development

CategorySharePoint

SharePoint pattern for allowing unsafe updates

S

I see some pieces of the same error-prone code recur far too often in SharePoint. Probably most pervasive is the one to allow and not allow unsafe updates. In this post, I’ll provide a proper solution for this matter.

Advertisements

Managing shared information with IDisposable in C# and SharePoint

M

Every once in a while you’ll have a situation in which you temporarily have to use different (shared) settings and reset them if all work is done. An example of this is often seen in SharePoint, for instance disabling events when updating items in event receivers, or allowing unsafe updates. A workaround that I have seen a lot is that developers add a TRY/CATCH/FINAL block for each method...

Hendrik Bulens All about .NET development