Verifies whether outstanding edits should be committed before a command is executed.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Protected Overrides Function CommitPendingEditForCommand ( _
command As CommandID _
) As Boolean
'Usage
Dim command As CommandID
Dim returnValue As Boolean
returnValue = Me.CommitPendingEditForCommand(command)
protected override bool CommitPendingEditForCommand(
CommandID command
)
protected:
virtual bool CommitPendingEditForCommand(
CommandID^ command
) override
protected override function CommitPendingEditForCommand(
command : CommandID
) : boolean
Parameters
command
Type: System.ComponentModel.Design.CommandIDThe ID that is assigned to the command for which you want to commit edits.
Return Value
Type: System.Boolean
true if there are outstanding edits; otherwise, false.
Remarks
By default, the return value is false.
If you use this method, derived classes can choose the commands to use to commit edits.
Because this method is frequently called, you should only use it with simple processing. For complex processing, use CommitPendingEdit.
.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.