共用方式為


SPBackupRestoreConsole.SetOnlyBackupRestoreItem Method

Specifies that only the specified component and its children will be the backed up or restored.

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function SetOnlyBackupRestoreItem ( _
    id As Guid, _
    item As SPBackupRestoreObject _
) As Boolean
'Usage
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
)

Parameters

Return Value

Type: System.Boolean
true if the operation succeeds; otherwise, false.

Remarks

SetOnlyBackupRestoreItem excludes the parent of item and any of its other children from the operation.

See Also

Reference

SPBackupRestoreConsole Class

SPBackupRestoreConsole Members

Microsoft.SharePoint.Administration.Backup Namespace