다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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