次の方法で共有


EditorControl.CommitPendingEdit(Int32) Method

Definition

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.

Applies to