Partilhar via


SPWeb.AllWebTemplatesAllowed Property

Gets a Boolean value that indicates whether the available Web templates that are returned by the GetAvailableWebTemplates method comprise the complete set of templates.

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

Syntax

'Declaration
Public ReadOnly Property AllWebTemplatesAllowed As Boolean
    Get
'Usage
Dim instance As SPWeb
Dim value As Boolean

value = instance.AllWebTemplatesAllowed
public bool AllWebTemplatesAllowed { get; }

Property Value

Type: System.Boolean
true if all Web templates are available; otherwise, false.

Remarks

Even if the AllWebTemplatesAllowed property returns true, the set of Web templates is still restricted by the language of the website.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace