Share via


IVsTaskList2.BeginTaskEdit Method

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)

Syntax

'Declaration
Function BeginTaskEdit ( _
    pItem As IVsTaskItem, _
    iFocusField As Integer _
) As Integer
int BeginTaskEdit(
    IVsTaskItem pItem,
    int iFocusField
)
int BeginTaskEdit(
    [InAttribute] IVsTaskItem^ pItem, 
    [InAttribute] int iFocusField
)
abstract BeginTaskEdit : 
        pItem:IVsTaskItem * 
        iFocusField:int -> int
function BeginTaskEdit(
    pItem : IVsTaskItem, 
    iFocusField : int
) : int

Parameters

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

Remarks

COM Signature

From vsshell80.idl:

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

.NET Framework Security

See Also

Reference

IVsTaskList2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace