C# 클래스 System.Transactions.Transaction

상속: System.IDisposable, System.Runtime.Serialization.ISerializable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FastGetTransaction Transaction
GetCurrentTransactionAndScope void
ISerializable void
InternalClone Transaction
InternalDispose void
InteropMode EnterpriseServicesInteropOption
Promote DistributedTransaction
System void
Transaction
Transaction System.Diagnostics
Transaction System.Diagnostics
Transaction System.Diagnostics
Transaction System.Diagnostics
UseServiceDomainForCurrent bool

공개 메소드들

메소드 설명
Clone ( ) : System.Transactions.Transaction
Clone ( ) : Transaction
DependentClone ( DependentCloneOption cloneOption ) : DependentTransaction
DependentClone ( System cloneOption ) : System.Transactions.DependentTransaction
Dispose ( ) : void
EnlistDurable ( Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
EnlistDurable ( Guid resourceManagerIdentifier, ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
EnlistDurable ( System resourceManagerIdentifier, System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
EnlistPromotableSinglePhase ( IPromotableSinglePhaseNotification promotableSinglePhaseNotification ) : bool

Create a promotable single phase enlistment that promotes to MSDTC.

EnlistPromotableSinglePhase ( IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType ) : bool

Create a promotable single phase enlistment that promotes to a distributed transaction manager other than MSDTC.

EnlistPromotableSinglePhase ( System promotableSinglePhaseNotification ) : bool
EnlistPromotableSinglePhase ( System promotableSinglePhaseNotification, System promoterType ) : bool
EnlistVolatile ( IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
EnlistVolatile ( ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
EnlistVolatile ( System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetPromotedToken ( ) : byte[]

Gets the PromotedToken for the transaction. If the transaction has not already been promoted, retrieving this value will cause promotion. Before retrieving the PromotedToken, the Transaction.PromoterType value should be checked to see if it is a promoter type (Guid) that the caller understands. If the caller does not recognize the PromoterType value, retreiving the PromotedToken doesn't have much value because the caller doesn't know how to utilize it. But if the PromoterType is recognized, the caller should know how to utilize the PromotedToken to communicate with the promoting distributed transaction coordinator to enlist on the distributed transaction. If the value of a transaction's PromoterType is TransactionInterop.PromoterTypeDtc, then that transaction's PromotedToken will be an MSDTC-based TransmitterPropagationToken.

PromoteAndEnlistDurable ( Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
PromoteAndEnlistDurable ( System resourceManagerIdentifier, System promotableNotification, System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
Rollback ( ) : void
Rollback ( Exception e ) : void
Rollback ( System e ) : void
SetDistributedTransactionIdentifier ( IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier ) : void
SetDistributedTransactionIdentifier ( System promotableNotification, System distributedTransactionIdentifier ) : void
operator ( ) : bool

비공개 메소드들

메소드 설명
FastGetTransaction ( TransactionScope currentScope, ContextData contextData, Transaction &contextTransaction ) : Transaction
GetCurrentTransactionAndScope ( TxLookup defaultLookup, Transaction &current, TransactionScope &currentScope, Transaction &contextTransaction ) : void
ISerializable ( SerializationInfo serializationInfo, StreamingContext context ) : void
InternalClone ( ) : Transaction
InternalDispose ( ) : void
InteropMode ( TransactionScope currentScope ) : EnterpriseServicesInteropOption
Promote ( ) : DistributedTransaction
System ( System info, System context ) : void
Transaction ( )
Transaction ( ) : System.Diagnostics
Transaction ( DistributedTransaction distributedTransaction ) : System.Diagnostics
Transaction ( IsolationLevel isoLevel, ISimpleTransactionSuperior superior ) : System.Diagnostics
Transaction ( IsolationLevel isoLevel, InternalTransaction internalTransaction ) : System.Diagnostics
UseServiceDomainForCurrent ( ) : bool

메소드 상세

Clone() 공개 메소드

public Clone ( ) : System.Transactions.Transaction
리턴 System.Transactions.Transaction

Clone() 공개 메소드

public Clone ( ) : Transaction
리턴 Transaction

DependentClone() 공개 메소드

public DependentClone ( DependentCloneOption cloneOption ) : DependentTransaction
cloneOption DependentCloneOption
리턴 DependentTransaction

DependentClone() 공개 메소드

public DependentClone ( System cloneOption ) : System.Transactions.DependentTransaction
cloneOption System
리턴 System.Transactions.DependentTransaction

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnlistDurable() 공개 메소드

public EnlistDurable ( Guid resourceManagerIdentifier, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
resourceManagerIdentifier Guid
enlistmentNotification IEnlistmentNotification
enlistmentOptions EnlistmentOptions
리턴 Enlistment

EnlistDurable() 공개 메소드

public EnlistDurable ( Guid resourceManagerIdentifier, ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
resourceManagerIdentifier Guid
singlePhaseNotification ISinglePhaseNotification
enlistmentOptions EnlistmentOptions
리턴 Enlistment

EnlistDurable() 공개 메소드

public EnlistDurable ( System resourceManagerIdentifier, System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
resourceManagerIdentifier System
enlistmentNotification System
enlistmentOptions System
리턴 System.Transactions.Enlistment

EnlistPromotableSinglePhase() 공개 메소드

Create a promotable single phase enlistment that promotes to MSDTC.
public EnlistPromotableSinglePhase ( IPromotableSinglePhaseNotification promotableSinglePhaseNotification ) : bool
promotableSinglePhaseNotification IPromotableSinglePhaseNotification The object that implements the IPromotableSinglePhaseNotification interface.
리턴 bool

EnlistPromotableSinglePhase() 공개 메소드

Create a promotable single phase enlistment that promotes to a distributed transaction manager other than MSDTC.
public EnlistPromotableSinglePhase ( IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType ) : bool
promotableSinglePhaseNotification IPromotableSinglePhaseNotification The object that implements the IPromotableSinglePhaseNotification interface.
promoterType Guid /// The promoter type Guid that identifies the format of the byte[] that is returned by the ITransactionPromoter.Promote /// call that is implemented by the IPromotableSinglePhaseNotificationObject, and thus the promoter of the transaction. ///
리턴 bool

EnlistPromotableSinglePhase() 공개 메소드

public EnlistPromotableSinglePhase ( System promotableSinglePhaseNotification ) : bool
promotableSinglePhaseNotification System
리턴 bool

EnlistPromotableSinglePhase() 공개 메소드

public EnlistPromotableSinglePhase ( System promotableSinglePhaseNotification, System promoterType ) : bool
promotableSinglePhaseNotification System
promoterType System
리턴 bool

EnlistVolatile() 공개 메소드

public EnlistVolatile ( IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
enlistmentNotification IEnlistmentNotification
enlistmentOptions EnlistmentOptions
리턴 Enlistment

EnlistVolatile() 공개 메소드

public EnlistVolatile ( ISinglePhaseNotification singlePhaseNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
singlePhaseNotification ISinglePhaseNotification
enlistmentOptions EnlistmentOptions
리턴 Enlistment

EnlistVolatile() 공개 메소드

public EnlistVolatile ( System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
enlistmentNotification System
enlistmentOptions System
리턴 System.Transactions.Enlistment

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetPromotedToken() 공개 메소드

Gets the PromotedToken for the transaction. If the transaction has not already been promoted, retrieving this value will cause promotion. Before retrieving the PromotedToken, the Transaction.PromoterType value should be checked to see if it is a promoter type (Guid) that the caller understands. If the caller does not recognize the PromoterType value, retreiving the PromotedToken doesn't have much value because the caller doesn't know how to utilize it. But if the PromoterType is recognized, the caller should know how to utilize the PromotedToken to communicate with the promoting distributed transaction coordinator to enlist on the distributed transaction. If the value of a transaction's PromoterType is TransactionInterop.PromoterTypeDtc, then that transaction's PromotedToken will be an MSDTC-based TransmitterPropagationToken.
public GetPromotedToken ( ) : byte[]
리턴 byte[]

PromoteAndEnlistDurable() 공개 메소드

public PromoteAndEnlistDurable ( Guid resourceManagerIdentifier, IPromotableSinglePhaseNotification promotableNotification, ISinglePhaseNotification enlistmentNotification, EnlistmentOptions enlistmentOptions ) : Enlistment
resourceManagerIdentifier Guid
promotableNotification IPromotableSinglePhaseNotification
enlistmentNotification ISinglePhaseNotification
enlistmentOptions EnlistmentOptions
리턴 Enlistment

PromoteAndEnlistDurable() 공개 메소드

public PromoteAndEnlistDurable ( System resourceManagerIdentifier, System promotableNotification, System enlistmentNotification, System enlistmentOptions ) : System.Transactions.Enlistment
resourceManagerIdentifier System
promotableNotification System
enlistmentNotification System
enlistmentOptions System
리턴 System.Transactions.Enlistment

Rollback() 공개 메소드

public Rollback ( ) : void
리턴 void

Rollback() 공개 메소드

public Rollback ( Exception e ) : void
e Exception
리턴 void

Rollback() 공개 메소드

public Rollback ( System e ) : void
e System
리턴 void

SetDistributedTransactionIdentifier() 공개 메소드

public SetDistributedTransactionIdentifier ( IPromotableSinglePhaseNotification promotableNotification, Guid distributedTransactionIdentifier ) : void
promotableNotification IPromotableSinglePhaseNotification
distributedTransactionIdentifier Guid
리턴 void

SetDistributedTransactionIdentifier() 공개 메소드

public SetDistributedTransactionIdentifier ( System promotableNotification, System distributedTransactionIdentifier ) : void
promotableNotification System
distributedTransactionIdentifier System
리턴 void

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool