MessageQueueTransaction.Status 属性

定义

获取事务的状态。Gets the status of the transaction.

public:
 property System::Messaging::MessageQueueTransactionStatus Status { System::Messaging::MessageQueueTransactionStatus get(); };
public System.Messaging.MessageQueueTransactionStatus Status { get; }
member this.Status : System.Messaging.MessageQueueTransactionStatus
Public ReadOnly Property Status As MessageQueueTransactionStatus

属性值

MessageQueueTransactionStatus 值之一,指示事务是否已被提交、中止、初始化或正被挂起。One of the MessageQueueTransactionStatus values that indicates whether the transaction has been committed, aborted, initialized, or is pending.

注解

创建MessageQueueTransaction类的实例后Status , 由构造函数Initialized将设置为。When an instance of the MessageQueueTransaction class has been created, the Status is set by the constructor to Initialized. 调用Begin之后, 在Commit调用或Abort之前, StatusPendingAfter a call to Begin but before a call to Commit or Abort, the Status is Pending.

适用于

另请参阅