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)

Syntax

'Declaration
Public Delegate Function CanCommitCallback ( _
    transaction As Transaction _
) As CanCommitResult
public delegate CanCommitResult CanCommitCallback(
    Transaction transaction
)
public delegate CanCommitResult CanCommitCallback(
    Transaction^ transaction
)
type CanCommitCallback = 
    delegate of  
        transaction:Transaction -> CanCommitResult
JScript does not support delegates.

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.CanCommitResult
true if the transaction can commit; otherwise, false.

Remarks

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

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace

TransactionManager