CanCommitCallback Delegate

 

Represents a callback method for determining whether a transaction can commit based on external criteria.

Namespace:   Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public delegate CanCommitResult CanCommitCallback(
	Transaction^ transaction
)

Parameters

transaction
Type: Microsoft.VisualStudio.Modeling::Transaction^

The transaction to check.

Return Value

Type: Microsoft.VisualStudio.Modeling::CanCommitResult

true if the transaction can commit; otherwise, false.

To register or unregister such a callback method, use the AddCanCommitCallback or RemoveCanCommitCallback method of the transaction manager.

Return to top
Show: