共用方式為


SPUserCodeService.UpdateRegistryKeyPermissions Method

Updates the permissions for the built-in user account to access the registry key.

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

Syntax

'Declaration
Public Shared Sub UpdateRegistryKeyPermissions
'Usage

SPUserCodeService.UpdateRegistryKeyPermissions()
public static void UpdateRegistryKeyPermissions()

Remarks

The server machine must be a domain controller.

See Also

Reference

SPUserCodeService Class

SPUserCodeService Members

Microsoft.SharePoint.Administration Namespace