SPBackupRestoreObject.FindObject Method

Returns the SPBackupRestoreObject with the specified ID.

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

Syntax

'Declaration
Public Function FindObject ( _
    id As Guid _
) As SPBackupRestoreObject
'Usage
Dim instance As SPBackupRestoreObject
Dim id As Guid
Dim returnValue As SPBackupRestoreObject

returnValue = instance.FindObject(id)
public SPBackupRestoreObject FindObject(
    Guid id
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreObject
The SPBackupRestoreObject with the specified ID or a null reference (Nothing in Visual Basic).

Remarks

A SPBackupRestoreObject represents a IBackupRestore content component and has the same ID as the component. Use FindObject to get a reference to the SPBackupRestoreObject that represents the IBackupRestore content component whose ID() is id.

A call to this.FindObject searches a tree of SPBackupRestoreObject objects that includes this.Parent and all the parent's children.

If no object with the specified ID is found, a null reference (Nothing in Visual Basic) is returned.

See Also

Reference

SPBackupRestoreObject Class

SPBackupRestoreObject Members

Microsoft.SharePoint.Administration.Backup Namespace