共用方式為


RestorePlan.CloseExistingConnections 屬性

Gets or sets a value indicating whether to close existing connections.

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

語法

'宣告
Public Property CloseExistingConnections As Boolean 
    Get 
    Set
'用途
Dim instance As RestorePlan 
Dim value As Boolean 

value = instance.CloseExistingConnections

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

屬性值

型別:System.Boolean
True if close existing connections; otherwise, false.

請參閱

參考

RestorePlan 類別

Microsoft.SqlServer.Management.Smo 命名空間