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
'宣言
Function BeginTaskEdit ( _
pItem As IVsTaskItem, _
iFocusField As Integer _
) As Integer
'使用
Dim instance As IVsTaskList2
Dim pItem As IVsTaskItem
Dim iFocusField As Integer
Dim returnValue As Integer
returnValue = instance.BeginTaskEdit(pItem, _
iFocusField)
int BeginTaskEdit(
IVsTaskItem pItem,
int iFocusField
)
int BeginTaskEdit(
[InAttribute] IVsTaskItem^ pItem,
[InAttribute] int iFocusField
)
function BeginTaskEdit(
pItem : IVsTaskItem,
iFocusField : int
) : int
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.
Remarks
COM Signature
From vsshell80.idl:
HRESULT BeginTaskEdit(
[in] IVsTaskItem* pItem,
[in] int iFocusField
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.