ReferenceNode.CanDeleteItem Method

Determines whether or not a node can be deleted in the supplied manner.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Protected Overrides Function CanDeleteItem ( _
    deleteOperation As __VSDELETEITEMOPERATION _
) As Boolean
'使用
Dim deleteOperation As __VSDELETEITEMOPERATION
Dim returnValue As Boolean

returnValue = Me.CanDeleteItem(deleteOperation)
protected override bool CanDeleteItem(
    __VSDELETEITEMOPERATION deleteOperation
)
protected:
virtual bool CanDeleteItem(
    __VSDELETEITEMOPERATION deleteOperation
) override
protected override function CanDeleteItem(
    deleteOperation : __VSDELETEITEMOPERATION
) : boolean

Parameters

Return Value

Type: System.Boolean

By default, returns true if the option is DELITEMOP_RemoveFromProject, false if it is DELITEMOP_DeleteFromStorage.

Permissions

See Also

Reference

ReferenceNode Class

ReferenceNode Members

Microsoft.VisualStudio.Package Namespace