次の方法で共有


IVsTaskList2.BeginTaskEdit(IVsTaskItem, Int32) Method

Definition

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.

public:
 int BeginTaskEdit(Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^ pItem, int iFocusField);
public:
 int BeginTaskEdit(Microsoft::VisualStudio::Shell::Interop::IVsTaskItem ^ pItem, int iFocusField);
int BeginTaskEdit(Microsoft::VisualStudio::Shell::Interop::IVsTaskItem const & pItem, int iFocusField);
public int BeginTaskEdit (Microsoft.VisualStudio.Shell.Interop.IVsTaskItem pItem, int iFocusField);
abstract member BeginTaskEdit : Microsoft.VisualStudio.Shell.Interop.IVsTaskItem * int -> int
Public Function BeginTaskEdit (pItem As IVsTaskItem, iFocusField As Integer) As Integer

Parameters

pItem
IVsTaskItem

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

iFocusField
Int32

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

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT BeginTaskEdit(  
   [in] IVsTaskItem* pItem,   
   [in] int iFocusField  
);  

Applies to