共用方式為


Backup.CompressionOption 屬性

Gets or sets the backup compression option.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Property CompressionOption As BackupCompressionOptions 
    Get 
    Set
'用途
Dim instance As Backup 
Dim value As BackupCompressionOptions 

value = instance.CompressionOption

instance.CompressionOption = value
public BackupCompressionOptions CompressionOption { get; set; }
public:
property BackupCompressionOptions CompressionOption {
    BackupCompressionOptions get ();
    void set (BackupCompressionOptions value);
}
member CompressionOption : BackupCompressionOptions with get, set
function get CompressionOption () : BackupCompressionOptions 
function set CompressionOption (value : BackupCompressionOptions)

屬性值

型別:Microsoft.SqlServer.Management.Smo.BackupCompressionOptions
The backup compression option.

備註

Member Name

Value

Description

Default

0

Use the default backup compression server configuration

On

1

Enable the backup compression

Off

2

Disable the backup compression

範例

備份及還原資料庫和交易記錄

請參閱

參考

Backup 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

BACKUP (Transact-SQL)