共用方式為


SPSite.UserCodeEnabled property

取得值,這個值,指出是否啟用網站集合的使用者程式碼服務。

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

Syntax

'宣告
Public ReadOnly Property UserCodeEnabled As Boolean
    Get
'用途
Dim instance As SPSite
Dim value As Boolean

value = instance.UserCodeEnabled
public bool UserCodeEnabled { get; }

Property value

Type: System.Boolean
true如果SPUserCodeService.IsEnabled屬性會傳回true和網站集合的使用者資源配額是否大於零。否則, false。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace