Condividi tramite


SPList.RootWebOnly Property

Property that indicates whether the option to allow deployment to root Webs only.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property RootWebOnly As Boolean
    Get
    Set
'Usage
Dim instance As SPList
Dim value As Boolean

value = instance.RootWebOnly

instance.RootWebOnly = value
public bool RootWebOnly { get; set; }

Property Value

Type: System.Boolean
A Boolean value = true if deployment is allowed on root Webs only.

Remarks

This property is false by default for lists. Setting this property to true for a list not on a root web throws a [System.NotSupportedException] exception.

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace