Share via


UnsecuredLayoutsPageBase.AllowNullWeb property

Gets a value indicating whether the UnsecuredLayoutsPageBase can initialize even if the current Web site is a null reference (Nothing in Visual Basic).

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

Syntax

'Declaration
Protected Overridable ReadOnly Property AllowNullWeb As Boolean
    Get
'Usage
Dim value As Boolean

value = Me.AllowNullWeb
protected virtual bool AllowNullWeb { get; }

Property value

Type: System.Boolean
true if the page can initialize even in a context with no Web site; otherwise, false.

Remarks

The default implementation always returns false.

See also

Reference

UnsecuredLayoutsPageBase class

UnsecuredLayoutsPageBase members

Microsoft.SharePoint.WebControls namespace