共用方式為


SPUserCodeService.IsEnabled Property

Gets a value that indicates whether the current service is provisioned and running as expected.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property IsEnabled As Boolean
    Get
'Usage
Dim instance As SPUserCodeService
Dim value As Boolean

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

Property Value

Type: System.Boolean
true if the current service is provisioned and running as expected; otherwise, false.

See Also

Reference

SPUserCodeService Class

SPUserCodeService Members

Microsoft.SharePoint.Administration Namespace