Transactions.InvokeTransacted 方法

定义

围绕回调方法包装指定的事务支持。Wraps a specified transaction support around a callback method.

重载

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)

参数

callback
TransactedCallback

在指定的事务支持下运行的 TransactedCallbackThe TransactedCallback to be run under the specified transaction support.

mode
TransactionOption

为委托指定事务支持的 TransactionOptionThe TransactionOption that specifies the transaction support for the delegate.

例外

操作系统不是 Windows NT 或更高版本。The operating system is not Windows NT or later.

无法执行事务处理代码。The transacted code cannot be executed.

适用于

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)

参数

callback
TransactedCallback

在指定的事务支持下运行的 TransactedCallbackThe TransactedCallback to be run under the specified transaction support.

mode
TransactionOption

为委托指定事务支持的 TransactionOptionThe TransactionOption that specifies the transaction support for the delegate.

transactionAborted
Boolean

如果在回调方法期间中止了事务,则为返回 true 的引用参数;否则为返回 false 的引用参数。The reference parameter that returns true if the transaction was aborted during the callback method; otherwise, false.

例外

操作系统不是 Windows NT 或更高版本。The operating system is not Windows NT or later.

无法执行事务处理代码。The transacted code cannot be executed.

注解

transactionAborted参数指示正在调用的事务处理回调的结果。The transactionAborted parameter indicates the result of the transacted callback that you are invoking.

适用于