UnsecuredLayoutsPageBase Class

Represents an application page, sometimes called a layouts page, that can request certain resources and verify that the client has not been disconnected.

Inheritance Hierarchy

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

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

Syntax

<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Class UnsecuredLayoutsPageBase _
    Inherits Page _
    Implements IRequestResources

Dim instance As UnsecuredLayoutsPageBase
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public class UnsecuredLayoutsPageBase : Page, 
    IRequestResources

Remarks

In general, use UnsecuredLayoutsPageBase as a base class for pages to which even unauthenticated users must have access; such as a login page.

For a page base control to which access can be limited to users that possess certain rights, use LayoutsPageBase.

Typically, you create a class in a code behind (.aspx.cs) file that derives from UnsecuredLayoutsPageBase. 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\login.aspx page that ships with Windows SharePoint Services 3.0 inherits from an internal class named LoginPage which itself inherits from 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

UnsecuredLayoutsPageBase Members

Microsoft.SharePoint.WebControls Namespace