SPWebApplication.GrantAccessToProcessIdentity method (String)
授與指定的處理序身分識別帳戶存取權,根據 [使用者名稱的 Web 應用程式。Access 的程序身分識別提供原則角色參數中指定的權限。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub GrantAccessToProcessIdentity ( _
username As String _
)
'用途
Dim instance As SPWebApplication
Dim username As String
instance.GrantAccessToProcessIdentity(username)
public void GrantAccessToProcessIdentity(
string username
)
參數
username
Type: System.String包含使用者名稱的字串。
備註
此方法可讓您從您自己的應用程式存取 SharePoint 物件模型使用的帳戶。