다음을 통해 공유


SPBackupRestoreObject.Reparent Method

Moves the SPBackupRestoreObject object to a new parent SPBackupRestoreObject object.

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

Syntax

'Declaration
Public Sub Reparent ( _
    newParent As SPBackupRestoreObject _
)
'Usage
Dim instance As SPBackupRestoreObject
Dim newParent As SPBackupRestoreObject

instance.Reparent(newParent)
public void Reparent(
    SPBackupRestoreObject newParent
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

SPBackupRestoreObject objects can be nested. For more information see the Parent and Children properties. Typically, a tree of SPBackupRestoreObject objects will mirror a tree of content components, such as farm, Web service, Web application, and content database. However, the Reparent method enables you to create trees for backup and restore operations that do not exactly mirror any part of your deployment's tree of components.

See Also

Reference

SPBackupRestoreObject Class

SPBackupRestoreObject Members

Microsoft.SharePoint.Administration.Backup Namespace