The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.ExplicitCommitTransactionAsync(CancellationToken) Method

Asynchronously completes an explicit transaction and commits changes made within the transaction.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public Task ExplicitCommitTransactionAsync(
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Function ExplicitCommitTransactionAsync(
    cancellationToken As CancellationToken = Nothing
) As Task
public Task ExplicitCommitTransactionAsync(
    CancellationToken cancellationToken = default(CancellationToken)
)
Public Function ExplicitCommitTransactionAsync(
    cancellationToken As CancellationToken = Nothing
) As Task

Parameters

Name Type Description
cancellationToken CancellationToken

A CancellationToken object that delivers a cancellation notice to the running operation.

Parameters

Name Type Description
cancellationToken CancellationToken

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task

A Task that commits changes made within an explicit transaction and completes the transaction.

Returns

Type Description
Task

A Task that commits changes made within an explicit transaction and completes the transaction.

Remarks

To start an explicit transaction, use the Session.ExplicitBeginTransaction method. To complete the explicit transaction asynchronously, call the ExplicitCommitTransactionAsync method. All data modifications made since the start of the transaction can be discarded via the Session.ExplicitRollbackTransaction method call.

See Also