Bewerken

Share via


Transactions.InvokeTransacted Method

Definition

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