AllowAccessToWebPartCatalog property
Collapse the table of content
Expand the table of content

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)

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.
© 2015 Microsoft