SPBackupRestoreConsole.GetUserNamePasswordList 方法
获取备份或还原操作,要求输入用户名和密码的所有组件的集合。
命名空间: Microsoft.SharePoint.Administration.Backup
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetUserNamePasswordList ( _
id As Guid, _
node As SPBackupRestoreObject _
) As SPBackupRestoreObjectCollection
用法
Dim id As Guid
Dim node As SPBackupRestoreObject
Dim returnValue As SPBackupRestoreObjectCollection
returnValue = SPBackupRestoreConsole.GetUserNamePasswordList(id, _
node)
public static SPBackupRestoreObjectCollection GetUserNamePasswordList(
Guid id,
SPBackupRestoreObject node
)
参数
id
类型:System.GuidGuidSPBackupRestoreConsoleObject表示在备份或还原操作的 ID。
node
类型:Microsoft.SharePoint.Administration.Backup.SPBackupRestoreObject它表示从中绘制需要身份验证的访问该集合的组件树的根处的组件的SPBackupRestoreObject 。
返回值
类型:Microsoft.SharePoint.Administration.Backup.SPBackupRestoreObjectCollection
SPBackupRestoreObjectCollection 表示在备份中的所有组件或要求输入用户名和密码的还原操作。