Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a callback method for determining whether a transaction can commit based on external criteria.
Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Delegate Function CanCommitCallback ( _
    transaction As Transaction _
) As Boolean
'Usage
Dim instance As New CanCommitCallback(AddressOf HandlerMethod)
public delegate bool CanCommitCallback(
    Transaction transaction
)
public delegate bool CanCommitCallback(
    Transaction^ transaction
)
JScript does not support delegates.
Parameters
- transaction 
 Type: Microsoft.VisualStudio.Modeling.Transaction- The transaction to check. 
Return Value
Type: System.Boolean
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
Change History
| Date | History | Reason | 
|---|---|---|
| July 2008 | Added topic. | Content bug fix. |