Share via


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

See also

Reference

SPBackupRestoreInformation class

SPBackupRestoreInformation members

Microsoft.SharePoint.Administration.Backup namespace