SPUserCodeService 类
管理设置和执行沙盒解决方案服务的功能。
继承层次结构
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.Administration.SPPersistedObject
Microsoft.SharePoint.Administration.SPPersistedUpgradableObject
Microsoft.SharePoint.Administration.SPService
Microsoft.SharePoint.Administration.SPWindowsService
Microsoft.SharePoint.Administration.SPUserCodeService
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<LaunchOnBehalfOfPrivilegeAttribute> _
<GuidAttribute("15F7F1D8-F061-4fe5-B951-38E37D5391EB")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPUserCodeService _
Inherits SPWindowsService _
Implements IBackupRestoreConfiguration, IBackupRestore
用法
Dim instance As SPUserCodeService
[LaunchOnBehalfOfPrivilegeAttribute]
[GuidAttribute("15F7F1D8-F061-4fe5-B951-38E37D5391EB")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPUserCodeService : SPWindowsService,
IBackupRestoreConfiguration, IBackupRestore
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。