SPBackupRestoreConsole.SetOnlyBackupRestoreItem method
會指定只指定的元件及其子項向上會備份或還原。
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function SetOnlyBackupRestoreItem ( _
id As Guid, _
item As SPBackupRestoreObject _
) As Boolean
'用途
Dim id As Guid
Dim item As SPBackupRestoreObject
Dim returnValue As Boolean
returnValue = SPBackupRestoreConsole.SetOnlyBackupRestoreItem(id, _
item)
public static bool SetOnlyBackupRestoreItem(
Guid id,
SPBackupRestoreObject item
)
參數
id
Type: System.Guid代表備份或還原作業SPBackupRestoreConsoleObjectGuid識別碼。
item
Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreObjectSPBackupRestoreObject表示備份或還原的元件。
傳回值
Type: System.Boolean
true如果作業成功 ;否則,請false。
備註
SetOnlyBackupRestoreItem作業排除的父代item和任何其他子項。