Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Cancels the current explicit transaction and rolls the metadata store back to the state it was in before the transaction was started.
Namespace: Microsoft.Synchronization.MetadataStorage
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
Syntax
'Declaration
Public Overrides Sub RollbackTransaction
'Usage
Dim instance As SqlMetadataStore
instance.RollbackTransaction()
public override void RollbackTransaction()
public:
virtual void RollbackTransaction() override
abstract RollbackTransaction : unit -> unit
override RollbackTransaction : unit -> unit
public override function RollbackTransaction()
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | This object has been disposed or was not initialized correctly. |
| InvalidOperationException | A metadata store has not been opened or created, or an explicit transaction was not started. |
Remarks
When this method is called, any metadata changes that were made after the previous call to BeginTransaction will be discarded.