Compartir a través de


BlockSize Propiedad

Gets or sets the physical block size of the backup or restore, in bytes.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Property BlockSize As Integer
    Get
    Set
'Uso
Dim instance As BackupRestoreBase
Dim value As Integer

value = instance.BlockSize

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

Valor de la propiedad

Tipo: System. . :: . .Int32
An Int32 value that specifies the block size in bytes.

Notas

The supported sizes are 512, 1024, 2048, 4096, 8192, 16384, 32768, and 65536 (64 KB) bytes. The default is 65536 for tape devices and 512 otherwise. Backup automatically selects the default for the device.

If you are taking a backup that you plan to copy onto and restore from a CD-ROM, specify BLOCKSIZE=2048.