AuthoringContainer.RequireListItem property
Gets or sets whether an SPListItem is required in this context to display the contents of this container.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property RequireListItem As Boolean
Get
Set
'Usage
Dim instance As AuthoringContainer
Dim value As Boolean
value = instance.RequireListItem
instance.RequireListItem = value
public bool RequireListItem { get; set; }
Property value
Type: System.Boolean
Remarks
By default, the current context must have an SPListItem in order for the contents of the AuthoringContainer to be visible. If you set this value to false the controls will be visible even when there is no SPListItem.