SPWebApplication.AllowAccessToWebPartCatalog Property
Gets or sets a value that indicates whether sites in the Web application can use Web Parts from the global catalog.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Property Value
Type: System.Booleantrue if sites can use Web Parts from the global Web Part Catalog; otherwise, false. The default value is true.