Condividi tramite


Backup.FormatMedia Property

Gets or sets a Boolean property value that determines whether a tape is formatted as the first step of the backup operation.

Spazio dei nomi: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintassi

'Dichiarazione
Public Property FormatMedia As Boolean
public bool FormatMedia { get; set; }
public:
property bool FormatMedia {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_FormatMedia ()

/** @property */
public void set_FormatMedia (boolean value)
public function get FormatMedia () : boolean

public function set FormatMedia (value : boolean)

Valore proprietà

A Boolean value that specifies whether the tape will be formatted. If True, the Microsoft SQL Server backup operation attempts to format the tape as the initial step. If False (default), the SQL Server backup operation does not attempt to format the tape.

Osservazioni

The FormatMedia property applies only when the backup medium is tape. The property has no meaning for device, file, or pipe media.

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempio

How to: Back Up Databases and Transaction Logs in Visual Basic .NET

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

Backup Class
Backup Members
Microsoft.SqlServer.Management.Smo Namespace

Altre risorse

Backup e ripristino di database in SQL Server
BACKUP (Transact-SQL)