Edit

Share via


InstancePersistenceCommand.IsTransactionEnlistmentOptional Property

Definition

Returns a value that indicates whether the persistence provider may choose not to enlist in the ambient transaction (Transaction.Current) when executing this command.

protected public:
 virtual property bool IsTransactionEnlistmentOptional { bool get(); };
protected internal virtual bool IsTransactionEnlistmentOptional { get; }
member this.IsTransactionEnlistmentOptional : bool
Protected Friend Overridable ReadOnly Property IsTransactionEnlistmentOptional As Boolean

Property Value

true if enlisting in the transaction is optional for this command, otherwise false.

Remarks

The command classes that derive from this class can override this property to set it to true.

Applies to