Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
LayoutsPageBase Class (Microsoft.SharePoint.WebControls)
Represents an application page (sometimes called a "_layouts" page) to which access can be limited to users that possess certain rights.

Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
Public Class LayoutsPageBase
    Inherits UnsecuredLayoutsPageBase
Visual Basic (Usage)
Dim instance As LayoutsPageBase
C#
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")] 
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")] 
public class LayoutsPageBase : UnsecuredLayoutsPageBase

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.

Typically, you create a class in a code behind (.aspx.cs) file that derives from LayoutsPageBase. Your .aspx file, in turn, inherits from your custom page class. For example, the c:\Program Files\Microsoft Shared\web server extenstions\12\TEMPLATE\LAYOUTS\CreateWebPage.aspx page that ships with Windows SharePoint Services 3.0 inherits from an internal class named CreateWebPage which itself inherits from LayoutsPageBase.

System.Object
   System.Web.UI.Control
     System.Web.UI.TemplateControl
       System.Web.UI.Page
         Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase
          Microsoft.SharePoint.WebControls.LayoutsPageBase
             Microsoft.SharePoint.ApplicationPages.ContentsPage
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker