SharePointHandler class

Provides static methods for getting references to the safe controls of a site and testing a control for safety.


Namespace:  Microsoft.SharePoint.ApplicationRuntime
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class SharePointHandler : IHttpHandler

The only constructor for SharePointHandler and the SharePointHandlerFactory are both obsolete, so you can no longer instantiate an object of this class. Two of its static methods are still available for use: GetSafeControls and IsSafeControl.

One static method, DisposeResources, is also obsolete.

Although this class nominally implements IHttpHandler, the methods of that interface,

ProcessRequest and SPProcessRequest, are obsolete within SharePointHandler, and they are not static so they are no longer callable anyway.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.