IVsTaskProvider3::OnEndTaskEdit Method (IVsTaskItem^, Int32, Int32)

 

Called when the user finishes editing a task in-place. fCommitChanges indicates whether the user chose to commit the changes or discard them. This method may set *pfAllowChanges to FALSE to disallow the user from exiting edit mode. If fCommitChanges is TRUE, the changes will have already been persisted down to the task item.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int OnEndTaskEdit(
	IVsTaskItem^ pItem,
	int fCommitChanges,
	[OutAttribute] int% pfAllowChanges
)

Parameters

pItem
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskItem^

[in] A pointer to an object of type IVsTaskItem.

fCommitChanges
Type: System::Int32

[in] A Boolean value set to TRUE if the user chooses to commit the changes.

pfAllowChanges
Type: System::Int32

[out] A Boolean value set to FALSE to disallow the user from exiting edit mode, or to TRUE if the changes were already persisted down to the task item.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell80.idl:

HRESULT IVsTaskProvider3::OnEndTaskEdit(
   [in] IVsTaskItem* pItem, 
   [in] BOOL fCommitChanges, 
   [out] BOOL* pfAllowChanges
);
Return to top
Show: