共用方式為


DacDeployOptions.DeployDatabaseInSingleUserMode 屬性

Get or set boolean that specifies whether the system will acquire single-user mode on the target database during the duration of the deployment operation.

命名空間:  Microsoft.SqlServer.Dac
組件:  Microsoft.SqlServer.Dac (在 Microsoft.SqlServer.Dac.dll 中)

語法

'宣告
Public Property DeployDatabaseInSingleUserMode As Boolean 
    Get 
    Set
'用途
Dim instance As DacDeployOptions 
Dim value As Boolean 

value = instance.DeployDatabaseInSingleUserMode

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

屬性值

型別:System.Boolean
True to acquire single-user mode during deployment; otherwise, false. Default is false.

備註

The database will be returned to multi-user mode after all changes are applied. Database may remain in single-user mode if an error occurs during execution.

請參閱

參考

DacDeployOptions 類別

Microsoft.SqlServer.Dac 命名空間