共用方式為


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
)

參數

傳回值

Type: System.Boolean
true如果作業成功 ;否則,請false。

備註

SetOnlyBackupRestoreItem作業排除的父代item和任何其他子項。

請參閱

參照

SPBackupRestoreConsole class

SPBackupRestoreConsole members

Microsoft.SharePoint.Administration.Backup namespace