X509Certificate DatabaseExecute Within Transaction Method
Execute an action within a database transaction.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected void ExecuteWithinTransaction(
Action action
)Parameters
- action Action
- The action to execute within the transaction.
Remarks
All database commands used within the action must be created using CreateCommand.
Exceptions
| ObjectDisposedException | The X509CertificateDatabase has been disposed. |