IVsTaskList2::BeginTaskEdit Method (IVsTaskItem^, Int32)

 

Scrolls if necessary to make the task visible, selects it, and enters edit mode with the focus on the specified field. If the task does not belong to the active provider or the specified field is not a visible, editable field, the method will fail.

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

int BeginTaskEdit(
	IVsTaskItem^ pItem,
	int iFocusField
)

Parameters

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

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

iFocusField
Type: System::Int32

[In] An integer value containing the specified Field Index.

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 BeginTaskEdit(
   [in] IVsTaskItem* pItem, 
   [in] int iFocusField
);
Return to top
Show: