次の方法で共有


COM+ と ServiceModel でのトランザクションの比較

このトピックでは、トランザクション COM+ サービスの動作を、System.ServiceModel 名前空間で定義された Windows Communication Foundation (WCF) 属性を使用してシミュレートする方法について説明します。

ServiceModel 属性を使った COM+ のエミュレート

次の表では、EnterpriseServices トランザクションの生成に使用される TransactionOption 列挙体の各値を比較し、System.ServiceModel 名前空間で定義された WCF 属性との関連を示します。

COM+ 属性 WCF 属性

RequiresNew

TransactionFlowAttributeNotAllowed に設定されます。

TransactionScopeRequiredtrue です。

バインド要素の TransactionFlow 属性は false です。

Required

TransactionFlowAttributeAllowed に設定されます。

TransactionScopeRequiredtrue です。

バインド要素の TransactionFlow 属性は true です。

Supported

同等の属性はありません。一般に、Required を指定した場合の動作を採用することをお勧めします。

NotSupported

TransactionScopeRequiredfalse です。

バインド要素の TransactionFlow 属性は false です。

Disabled

同等の属性はありません。一般に、NotSupported を指定した場合の動作を採用することをお勧めします。