SPDatabase.AddLogon method (String, SecureString, String, 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 _
)
'Usage
Dim instance As SPDatabase
Dim username As String
Dim securePassword As SecureString
Dim role As String
Dim ensureUserExists As Boolean
instance.AddLogon(username, securePassword, _
role, ensureUserExists)
public void AddLogon(
string username,
SecureString securePassword,
string role,
bool ensureUserExists
)
Parameters
- username
Type: System.String
- securePassword
Type: System.Security.SecureString
- role
Type: System.String
- ensureUserExists
Type: System.Boolean