Compartir a través de


DacDeployOptions.BlockWhenDriftDetected Propiedad

Get or set boolean that specifies whether the system will check for differences between the present state of the database and the registered state of the database and block deployment if changes are detected. Even if this option is set to true, drift detection will only occur on a database if it was previously deployed with the RegisterDataTierApplication option enabled.

Espacio de nombres:  Microsoft.SqlServer.Dac
Ensamblado:  Microsoft.SqlServer.Dac (en Microsoft.SqlServer.Dac.dll)

Sintaxis

'Declaración
Public Property BlockWhenDriftDetected As Boolean 
    Get 
    Set
'Uso
Dim instance As DacDeployOptions 
Dim value As Boolean 

value = instance.BlockWhenDriftDetected

instance.BlockWhenDriftDetected = value
public bool BlockWhenDriftDetected { get; set; }
public:
property bool BlockWhenDriftDetected {
    bool get ();
    void set (bool value);
}
member BlockWhenDriftDetected : bool with get, set
function get BlockWhenDriftDetected () : boolean 
function set BlockWhenDriftDetected (value : boolean)

Valor de la propiedad

Tipo: System.Boolean
True to error is drift is detected; otherwise, false. Default is true.

Vea también

Referencia

DacDeployOptions Clase

Espacio de nombres Microsoft.SqlServer.Dac