SharePointHandler Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.ApplicationRuntime.SharePointHandler

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Class SharePointHandler _
    Implements IHttpHandler
'Usage
Dim instance As SharePointHandler
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public class SharePointHandler : IHttpHandler

Remarks

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.

Thread Safety

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

See Also

Reference

SharePointHandler Members

Microsoft.SharePoint.ApplicationRuntime Namespace