共用方式為


TaskProvider.IVsTaskProvider3.OnEndTaskEdit Method

Raised when the user finishes editing a task in-place.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Private Function OnEndTaskEdit ( _
    item As IVsTaskItem, _
    fCommitChanges As Integer, _
    <OutAttribute> ByRef fAllowChanges As Integer _
) As Integer Implements IVsTaskProvider3.OnEndTaskEdit
int IVsTaskProvider3.OnEndTaskEdit(
    IVsTaskItem item,
    int fCommitChanges,
    out int fAllowChanges
)

Parameters

  • fCommitChanges
    Type: System.Int32
    true if the user wishes to commit the changes, false if the user wishes to discard them.
  • fAllowChanges
    Type: System.Int32%
    [out] Returns true if the changes have been committed, false to disallow the user from leaving edit mode.

Return Value

Type: System.Int32
S_OK .

Implements

IVsTaskProvider3.OnEndTaskEdit(IVsTaskItem, Int32, Int32%)

Remarks

By default this method sets fAllowChanges to true.

.NET Framework Security

See Also

Reference

TaskProvider Class

Microsoft.VisualStudio.Shell Namespace