Freigeben über


SPWebApplication.GrantAccessToProcessIdentity-Methode (String, SPPolicyRoleType)

Gewährt den angegebenen Prozess Identität Kontozugriff auf die Webanwendung, die basierend auf den Namen des Benutzers und die Zugriffsebene. Zugriff auf die Prozessidentität bietet vollständige Kontrolle über die SharePoint-Webanwendung.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub GrantAccessToProcessIdentity ( _
    username As String, _
    policyRole As SPPolicyRoleType _
)
'Usage
Dim instance As SPWebApplication
Dim username As String
Dim policyRole As SPPolicyRoleType

instance.GrantAccessToProcessIdentity(username, _
    policyRole)
public void GrantAccessToProcessIdentity(
    string username,
    SPPolicyRoleType policyRole
)

Parameter

  • username
    Typ: System.String

    Eine Zeichenfolge, die den Namen des Benutzers enthält.

Siehe auch

Referenz

SPWebApplication Klasse

SPWebApplication-Member

GrantAccessToProcessIdentity-Überladung

Microsoft.SharePoint.Administration-Namespace