Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
id
Type: System.GuidThe Guid ID of the SPBackupRestoreConsoleObject that represents the backup or restore operation.
item
Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreObjectThe SPBackupRestoreObject that represents the component that is backed up or restored.
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.