次の方法で共有


SimpleEditorView.CommitPendingEdit(Int32) Method

Definition

Commits any changes made to the file.

public:
 virtual int CommitPendingEdit([Runtime::InteropServices::Out] int % fCommitFailed);
 virtual int CommitPendingEdit([Runtime::InteropServices::Out] int & fCommitFailed);
public virtual int CommitPendingEdit (out int fCommitFailed);
abstract member CommitPendingEdit : int -> int
override this.CommitPendingEdit : int -> int
Public Overridable 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.

Implements

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