SPWebApplication.GrantAccessToProcessIdentity 方法 (String, SPPolicyRoleType)
授予到基于用户的名称和访问级别的 Web 应用程序指定的进程标识帐户访问权限。访问权限的进程标识提供的 SharePoint Web 应用程序的完全控制。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub GrantAccessToProcessIdentity ( _
username As String, _
policyRole As SPPolicyRoleType _
)
用法
Dim instance As SPWebApplication
Dim username As String
Dim policyRole As SPPolicyRoleType
instance.GrantAccessToProcessIdentity(username, _
policyRole)
public void GrantAccessToProcessIdentity(
string username,
SPPolicyRoleType policyRole
)
参数
username
类型:System.String一个字符串,包含用户的名称。
policyRole
类型:Microsoft.SharePoint.Administration.SPPolicyRoleType一个SPPolicyRoleType对象,表示要将全面应用于指定用户的策略角色。