SPDatabase.AddLogon method (String, SecureString, String, Boolean, Boolean)

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

Syntax

'Declaration
Public Sub AddLogon ( _
    username As String, _
    securePassword As SecureString, _
    role As String, _
    ensureUserExists As Boolean, _
    ensurePermissions As Boolean _
)
'Usage
Dim instance As SPDatabase
Dim username As String
Dim securePassword As SecureString
Dim role As String
Dim ensureUserExists As Boolean
Dim ensurePermissions As Boolean

instance.AddLogon(username, securePassword, _
    role, ensureUserExists, ensurePermissions)
public void AddLogon(
    string username,
    SecureString securePassword,
    string role,
    bool ensureUserExists,
    bool ensurePermissions
)

Parameters

See also

Reference

SPDatabase class

SPDatabase members

AddLogon overload

Microsoft.SharePoint.Administration namespace