ServiceBehaviorAttribute.TransactionAutoCompleteOnSessionClose Property


取得或設定值,這個值會指定當目前工作階段在沒有錯誤的情況下關閉時,是否完成擱置的交易。Gets or sets a value that specifies whether pending transactions are completed when the current session closes without error.

 property bool TransactionAutoCompleteOnSessionClose { bool get(); void set(bool value); };
public bool TransactionAutoCompleteOnSessionClose { get; set; }
member this.TransactionAutoCompleteOnSessionClose : bool with get, set
Public Property TransactionAutoCompleteOnSessionClose As Boolean

Property Value


若擱置的交易要在目前工作階段關閉且無錯誤的情況下完成,則為 true,否則為 falsetrue if pending transactions are to be completed when the current session closes without error; otherwise, false. 預設值為 falseThe default is false.

Applies to