Transactions.InvokeTransacted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wraps a specified transaction support around a callback method.
Overloads
InvokeTransacted(TransactedCallback, TransactionOption) |
Wraps a specified transaction support around a callback method. |
InvokeTransacted(TransactedCallback, TransactionOption, Boolean) |
Wraps a specified transaction support around a callback method and indicates whether the transaction aborted. |
InvokeTransacted(TransactedCallback, TransactionOption)
Wraps a specified transaction support around a callback method.
public:
static void InvokeTransacted(System::Web::Util::TransactedCallback ^ callback, System::EnterpriseServices::TransactionOption mode);
public static void InvokeTransacted (System.Web.Util.TransactedCallback callback, System.EnterpriseServices.TransactionOption mode);
static member InvokeTransacted : System.Web.Util.TransactedCallback * System.EnterpriseServices.TransactionOption -> unit
Public Shared Sub InvokeTransacted (callback As TransactedCallback, mode As TransactionOption)
Parameters
- callback
- TransactedCallback
The TransactedCallback to be run under the specified transaction support.
- mode
- TransactionOption
The TransactionOption that specifies the transaction support for the delegate.
Exceptions
The operating system is not Windows NT or later.
The transacted code cannot be executed.
Applies to
InvokeTransacted(TransactedCallback, TransactionOption, Boolean)
Wraps a specified transaction support around a callback method and indicates whether the transaction aborted.
public:
static void InvokeTransacted(System::Web::Util::TransactedCallback ^ callback, System::EnterpriseServices::TransactionOption mode, bool % transactionAborted);
public static void InvokeTransacted (System.Web.Util.TransactedCallback callback, System.EnterpriseServices.TransactionOption mode, ref bool transactionAborted);
static member InvokeTransacted : System.Web.Util.TransactedCallback * System.EnterpriseServices.TransactionOption * bool -> unit
Public Shared Sub InvokeTransacted (callback As TransactedCallback, mode As TransactionOption, ByRef transactionAborted As Boolean)
Parameters
- callback
- TransactedCallback
The TransactedCallback to be run under the specified transaction support.
- mode
- TransactionOption
The TransactionOption that specifies the transaction support for the delegate.
- transactionAborted
- Boolean
The reference parameter that returns true
if the transaction was aborted during the callback method; otherwise, false
.
Exceptions
The operating system is not Windows NT or later.
The transacted code cannot be executed.
Remarks
The transactionAborted
parameter indicates the result of the transacted callback that you are invoking.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應