IVsObjectList::CanDelete Method (UInt32, Int32)

 

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)

int CanDelete(
	unsigned int index,
	[OutAttribute] int% pfOK
)

Parameters

index
Type: System::UInt32

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

pfOK
Type: System::Int32

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

Return Value

Type: System::Int32

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

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.

Return to top
Show: