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
deleteOperation
Type: Microsoft.VisualStudio.Shell.Interop.__VSDELETEITEMOPERATIONThe way in which the node can be deleted (delete from disk/remove from project).
Return Value
Type: System.Boolean
By default, returns true if the option is DELITEMOP_RemoveFromProject, false if it is DELITEMOP_DeleteFromStorage.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.