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
transaction
Type: Microsoft.VisualStudio.Modeling.TransactionThe transaction.
Return Value
Type: Microsoft.VisualStudio.Modeling.CanCommitResult
true if the top-level transaction can be committed; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.