Condividi tramite


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
    Microsoft.SharePoint.ApplicationRuntime.SharePointHandlerReadOnlySessionState
    Microsoft.SharePoint.ApplicationRuntime.SharePointHandlerRequiresSessionState

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

Syntax

<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SharePointHandler _
    Implements IHttpHandler

Dim instance As SharePointHandler
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
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