共用方式為


SPBackupRestoreConfigurationSettings.CurrentIsBackup Property

Gets or sets a value that indicates whether the current backup or restore operation is a backup operation or a restore operation.

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

Syntax

'Declaration
Public Property CurrentIsBackup As Boolean
    Get
    Friend Set
'Usage
Dim instance As SPBackupRestoreConfigurationSettings
Dim value As Boolean

value = instance.CurrentIsBackup
public bool CurrentIsBackup { get; internal set; }

Property Value

Type: System.Boolean
true if the current operation is a backup; otherwise, false, in which case the operation is a restore.

See Also

Reference

SPBackupRestoreConfigurationSettings Class

SPBackupRestoreConfigurationSettings Members

Microsoft.SharePoint.Administration.Backup Namespace