Share via


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