LayoutsPageBase class

Represents an application page to which access can be limited to users that possess certain rights.

Inheritance hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.Page
        Microsoft.SharePoint.WebControls.DeltaPage
          Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase
            Microsoft.SharePoint.WebControls.LayoutsPageBase
              Microsoft.SharePoint.Mobile.WebControls.SPMobilePage

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

Syntax

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

Remarks

In general, use LayoutsPageBase as a base class for pages that should only be accessible to authenticated users with certain rights. For pages to which even unauthenticated users should have access, use the parent class UnsecuredLayoutsPageBase.

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

LayoutsPageBase members

Microsoft.SharePoint.WebControls namespace