共用方式為


SPJobDefinition.AddBackupObjects Method

Adds this SPJobDefinition object to the backup/restore operation.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub AddBackupObjects ( _
    parent As SPBackupRestoreObject _
)
'Usage
Dim instance As SPJobDefinition
Dim parent As SPBackupRestoreObject

instance.AddBackupObjects(parent)
public void AddBackupObjects(
    SPBackupRestoreObject parent
)

Parameters

Implements

IBackupRestore.AddBackupObjects(SPBackupRestoreObject)

Exceptions

Exception Condition
ArgumentNullException

parent is a null reference (Nothing in Visual Basic).

Remarks

The AddBackupObjects(SPBackupRestoreObject) method is defined in the IBackupRestore interface.

This method can only be used only by backup timer jobs that support backup/restore and by recurring timer jobs.

See Also

Reference

SPJobDefinition Class

SPJobDefinition Members

Microsoft.SharePoint.Administration Namespace