Partager via


IVsTaskItem2.CanDelete Method (Int32%)

Determines whether a task item can be deleted.

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

Syntax

'Déclaration
Function CanDelete ( _
    <OutAttribute> ByRef pfCanDelete As Integer _
) As Integer
'Utilisation
Dim instance As IVsTaskItem2
Dim pfCanDelete As Integer
Dim returnValue As Integer

returnValue = instance.CanDelete(pfCanDelete)
int CanDelete(
    out int pfCanDelete
)
int CanDelete(
    [OutAttribute] int% pfCanDelete
)
abstract CanDelete : 
        pfCanDelete:int byref -> int 
function CanDelete(
    pfCanDelete : int
) : int

Parameters

  • pfCanDelete
    Type: System.Int32%
    [out, retval] If true, then the task item can be deleted. If false, then the item cannot be deleted.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsTaskItem.CanDelete(Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem::CanDelete(
   [out, retval]BOOL *pfCanDelete
);

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

CanDelete Overload

Microsoft.VisualStudio.Shell.Interop Namespace