InstancePersistenceCommand.IsTransactionEnlistmentOptional Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de