共用方式為


SPWebApplication.AllowAccessToWebPartCatalog property

取得或設定一個值,指出網站的 Web 應用程式是否可以使用網頁組件從通用類別目錄。

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

Syntax

'宣告
Public Property AllowAccessToWebPartCatalog As Boolean
    Get
    Set
'用途
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網站都可以使用網頁組件從通用網頁組件類別目錄 ; 如果否則,請false。預設值為true。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace