共用方式為


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 DatabaseOptions
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
)

參數

  • enabled
    型別:System. . :: . .Boolean
    A Boolean value that specifies whether the snapshot isolation level is enabled.
    If True, the snapshot isolation level is enabled. Otherwise, False.

範例

設定屬性