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.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class SharePointHandler _
    Implements IHttpHandler
'Usage
Dim instance As SharePointHandler
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, 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