Share via


SPWebApplication.AllowAccessToWebPartCatalog property

Gets or sets a value that indicates whether sites in the Web application can use Web Parts from the global catalog.

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

Syntax

'Declaration
Public Property AllowAccessToWebPartCatalog As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.AllowAccessToWebPartCatalog

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

Property value

Type: System.Boolean
true if sites can use Web Parts from the global Web Part Catalog; otherwise, false. The default value is true.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace