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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기