Редагувати

Поділитися через


SubordinateTransaction Class

Definition

Represents a non-rooted transaction that can be delegated. This class cannot be inherited.

public ref class SubordinateTransaction sealed : System::Transactions::Transaction
public sealed class SubordinateTransaction : System.Transactions.Transaction
[System.Serializable]
public sealed class SubordinateTransaction : System.Transactions.Transaction
type SubordinateTransaction = class
    inherit Transaction
[<System.Serializable>]
type SubordinateTransaction = class
    inherit Transaction
Public NotInheritable Class SubordinateTransaction
Inherits Transaction
Inheritance
SubordinateTransaction
Attributes

Remarks

This class derives from Transaction and provides a constructor that takes an implementation of the ISimpleTransactionSuperior interface. Instances of this type are not the root transaction but can be delegated.

Constructors

SubordinateTransaction(IsolationLevel, ISimpleTransactionSuperior)

Initializes a new instance of the SubordinateTransaction class.

Properties

IsolationLevel

Gets the isolation level of the transaction.

(Inherited from Transaction)
PromoterType

Uniquely identifies the format of the byte[] returned by the Promote method when the transaction is promoted.

(Inherited from Transaction)
TransactionInformation

Retrieves additional information about a transaction.

(Inherited from Transaction)

Methods

Clone()

Creates a clone of the transaction.

(Inherited from Transaction)
DependentClone(DependentCloneOption)

Creates a dependent clone of the transaction.

(Inherited from Transaction)
Dispose()

Releases the resources that are held by the object.

(Inherited from Transaction)
EnlistDurable(Guid, IEnlistmentNotification, EnlistmentOptions)

Enlists a durable resource manager that supports two phase commit to participate in a transaction.

(Inherited from Transaction)
EnlistDurable(Guid, ISinglePhaseNotification, EnlistmentOptions)

Enlists a durable resource manager that supports single phase commit optimization to participate in a transaction.

(Inherited from Transaction)
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification, Guid)

Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE).

(Inherited from Transaction)
EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification)

Enlists a resource manager that has an internal transaction using a promotable single phase enlistment (PSPE).

(Inherited from Transaction)
EnlistVolatile(IEnlistmentNotification, EnlistmentOptions)

Enlists a volatile resource manager that supports two phase commit to participate in a transaction.

(Inherited from Transaction)
EnlistVolatile(ISinglePhaseNotification, EnlistmentOptions)

Enlists a volatile resource manager that supports single phase commit optimization to participate in a transaction.

(Inherited from Transaction)
Equals(Object)

Determines whether this transaction and the specified object are equal.

(Inherited from Transaction)
GetHashCode()

Returns the hash code for this instance.

(Inherited from Transaction)
GetPromotedToken()

Gets the byte[] returned by the Promote method when the transaction is promoted.

(Inherited from Transaction)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PromoteAndEnlistDurable(Guid, IPromotableSinglePhaseNotification, ISinglePhaseNotification, EnlistmentOptions)

Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.

(Inherited from Transaction)
Rollback()

Rolls back (aborts) the transaction.

(Inherited from Transaction)
Rollback(Exception)

Rolls back (aborts) the transaction.

(Inherited from Transaction)
SetDistributedTransactionIdentifier(IPromotableSinglePhaseNotification, Guid)

Sets the distributed transaction identifier generated by the non-MSDTC promoter.

(Inherited from Transaction)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

TransactionCompleted

Indicates that the transaction is completed.

(Inherited from Transaction)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Gets a SerializationInfo with the data required to serialize this transaction.

(Inherited from Transaction)

Applies to

Thread Safety

This type is thread safe.