Share via


DataConnectionFile.IBackupRestore.OnPrepareBackup Method

Creates and stores the backup copy of the content component.

Namespace:  Microsoft.Office.InfoPath.Server.Administration
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Private Function OnPrepareBackup ( _
    sender As Object, _
    args As SPBackupInformation _
) As Boolean Implements IBackupRestore.OnPrepareBackup
'Usage
Dim instance As DataConnectionFile
Dim sender As Object
Dim args As SPBackupInformation
Dim returnValue As Boolean

returnValue = CType(instance, IBackupRestore).OnPrepareBackup(sender, _
    args)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
bool IBackupRestore.OnPrepareBackup(
    Object sender,
    SPBackupInformation args
)

Parameters

  • sender
    Type: System.Object
    The object that initiated the backup operation.

Return Value

Type: System.Boolean
true if successful; otherwise, false.

Implements

IBackupRestore.OnPrepareBackup(Object, SPBackupInformation)

See Also

Reference

DataConnectionFile Class

DataConnectionFile Members

Microsoft.Office.InfoPath.Server.Administration Namespace