Partager via


ModelingDocStore.CanCommit Method

Gets the modeling document store and verifies whether the top-level transaction can be committed.

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

Syntax

'Declaration
Public Overridable Function CanCommit ( _
    transaction As Transaction _
) As CanCommitResult
public virtual CanCommitResult CanCommit(
    Transaction transaction
)
public:
virtual CanCommitResult CanCommit(
    Transaction^ transaction
)
abstract CanCommit : 
        transaction:Transaction -> CanCommitResult  
override CanCommit : 
        transaction:Transaction -> CanCommitResult
public function CanCommit(
    transaction : Transaction
) : CanCommitResult

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.CanCommitResult
true if the top-level transaction can be committed; otherwise, false.

.NET Framework Security

See Also

Reference

ModelingDocStore Class

Microsoft.VisualStudio.Modeling.Shell Namespace