Partilhar 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