Freigeben über


IVsTaskProvider3.OnEndTaskEdit(IVsTaskItem, Int32, Int32) Method

Definition

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.

public:
 int OnEndTaskEdit(Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^ pItem, int fCommitChanges, [Runtime::InteropServices::Out] int % pfAllowChanges);
int OnEndTaskEdit(Microsoft::VisualStudio::Shell::Interop::IVsTaskItem const & pItem, int fCommitChanges, [Runtime::InteropServices::Out] int & pfAllowChanges);
public int OnEndTaskEdit (Microsoft.VisualStudio.Shell.Interop.IVsTaskItem pItem, int fCommitChanges, out int pfAllowChanges);
abstract member OnEndTaskEdit : Microsoft.VisualStudio.Shell.Interop.IVsTaskItem * int * int -> int
Public Function OnEndTaskEdit (pItem As IVsTaskItem, fCommitChanges As Integer, ByRef pfAllowChanges As Integer) As Integer

Parameters

pItem
IVsTaskItem

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

fCommitChanges
Int32

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

pfAllowChanges
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.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

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

Applies to