SPBackupRestoreInformation.SetUserNamePassword method
Assigns the specified password to the specified user.
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub SetUserNamePassword ( _
userName As String, _
password As String _
)
'Usage
Dim instance As SPBackupRestoreInformation
Dim userName As String
Dim password As String
instance.SetUserNamePassword(userName, _
password)
public void SetUserNamePassword(
string userName,
string password
)
Parameters
userName
Type: System.StringThe user.
password
Type: System.StringThe password for the user.
See also
Reference
SPBackupRestoreInformation class