Compartir a través de


IVsObjectList.CanDelete Method

Returns a flag indicating if the given list item can be deleted.

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

Syntax

'Declaration
Function CanDelete ( _
    index As UInteger, _
    <OutAttribute> ByRef pfOK As Integer _
) As Integer
int CanDelete(
    uint index,
    out int pfOK
)
int CanDelete(
    [InAttribute] unsigned int index, 
    [OutAttribute] int% pfOK
)
abstract CanDelete : 
        index:uint32 * 
        pfOK:int byref -> int
function CanDelete(
    index : uint, 
    pfOK : int
) : int

Parameters

  • index
    Type: UInt32

    [in] Specifies the index of the list item of interest.

  • pfOK
    Type: Int32%

    [out] Pointer to a flag indicating whether the item can be deleted.

Return Value

Type: Int32
Returns true if it can delete the item index, false if it cannot.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsObjectList::CanDelete(
   [in] ULONG Index,
   [out] BOOL *pfOK
);

Set pfOK to indicate whether the item Index can be deleted. Return true if it can, false if not.

.NET Framework Security

See Also

Reference

IVsObjectList Interface

Microsoft.VisualStudio.Shell.Interop Namespace