ModelingWindowPane.CommitPendingEditForCommand Method

When implemented in a derived class, specifies whether pending 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 Overridable Function CommitPendingEditForCommand ( _
    command As CommandID _
) As Boolean
'Usage
Dim command As CommandID 
Dim returnValue As Boolean 

returnValue = Me.CommitPendingEditForCommand(command)
protected virtual bool CommitPendingEditForCommand(
    CommandID command
)
protected:
virtual bool CommitPendingEditForCommand(
    CommandID^ command
)
protected function CommitPendingEditForCommand(
    command : CommandID
) : boolean

Parameters

Return Value

Type: System.Boolean
true if there are pending edits, otherwise false.

Remarks

By default, the return value is true.

This method allows you to specify which edits should be committed before executing a given command. Because this method is frequently called, use this method only for simple processing. For complex processing, use CommitPendingEdit.

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

Microsoft.VisualStudio.Modeling.Shell Namespace