共用方式為


SPClaimProviderManager.IBackupRestore.OnPrepareBackup Method

The event that is called when the system is preparing a backup operation.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.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 SPClaimProviderManager
Dim sender As Object
Dim args As SPBackupInformation
Dim returnValue As Boolean

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

Parameters

  • sender
    Type: System.Object

    The object that is calling this event.

Return Value

Type: System.Boolean
true if the backup is prepared successfully; otherwise, false.

Implements

IBackupRestore.OnPrepareBackup(Object, SPBackupInformation)

See Also

Reference

SPClaimProviderManager Class

SPClaimProviderManager Members

Microsoft.SharePoint.Administration.Claims Namespace