共用方式為


SPBackupRestoreSettings.IsBackup Property

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

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

Syntax

'Declaration
Public ReadOnly Property IsBackup As Boolean
    Get
'Usage
Dim instance As SPBackupRestoreSettings
Dim value As Boolean

value = instance.IsBackup
public bool IsBackup { get; }

Property Value

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

See Also

Reference

SPBackupRestoreSettings Class

SPBackupRestoreSettings Members

Microsoft.SharePoint.Administration.Backup Namespace