Export (0) Print
Expand All

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

protected virtual bool CommitPendingEditForCommand(
	CommandID command
)

Parameters

command
Type: System.ComponentModel.Design.CommandID

The ID that is assigned to the command before which pending edits should be committed.

Return Value

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

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.

Show:
© 2014 Microsoft