SimpleEditorView::CommitPendingEdit Method (Int32)

 

Commits any changes made to the file.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int CommitPendingEdit(
	[OutAttribute] int% fCommitFailed
)

Parameters

fCommitFailed
Type: System::Int32

[out] Returns true if the changes could not be committed.

Return Value

Type: System::Int32

S_OK if the method succeeded, otherwise an error code.

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.

Return to top
Show: