EditorControl.CommitPendingEdit(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Commits any changes made to the file.
public:
override int CommitPendingEdit([Runtime::InteropServices::Out] int % fCommitFailed);
override int CommitPendingEdit([Runtime::InteropServices::Out] int & fCommitFailed);
public override int CommitPendingEdit (out int fCommitFailed);
override this.CommitPendingEdit : int -> int
Public Overrides Function CommitPendingEdit (ByRef fCommitFailed As Integer) As Integer
Parameters
- fCommitFailed
- Int32
[out] Returns true
if the changes could not be committed.
Returns
S_OK if the method succeeded, otherwise an error code.
Remarks
By default this method returns S_OK and sets fCommitFailed
to false
. This method should be implemented by derived classes. The environment calls CommitPendingEdit before any command is executed; for example, this allows a window to commit pending edits in a control with focus before another command is invoked.