SetSnapshotIsolation 方法

Sets the snapshot isolation level.

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

語法

'宣告
Public Sub SetSnapshotIsolation ( _
    enabled As Boolean _
)
'用途
Dim instance As Database
Dim enabled As Boolean

instance.SetSnapshotIsolation(enabled)
public void SetSnapshotIsolation(
    bool enabled
)
public:
void SetSnapshotIsolation(
    bool enabled
)
member SetSnapshotIsolation : 
        enabled:bool -> unit 
public function SetSnapshotIsolation(
    enabled : boolean
)

參數

備註

If True, the snapshot isolation level is enabled.

If False, the snapshot isolation level is disabled.