SPSecurity.CodeToRunElevated 委托

表示可由RunWithElevatedPrivileges方法执行的委托方法。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Delegate Sub CodeToRunElevated
用法
Dim instance As New CodeToRunElevated(AddressOf HandlerMethod)
public delegate void CodeToRunElevated()

备注

在应用程序池标识使用的帐户下运行委托方法。这将使委托网站集管理员权限上承载的应用程序池的所有网站集。

另请参阅

引用

Microsoft.SharePoint 命名空间

RunWithElevatedPrivileges(SPSecurity.CodeToRunElevated)

其他资源

Elevation of Privilege