Checks whether the file can be deleted from storage or removed from the project.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Overridable Function CanDeleteItem ( _
deleteOperation As __VSDELETEITEMOPERATION _
) As Boolean
'使用
Dim deleteOperation As __VSDELETEITEMOPERATION
Dim returnValue As Boolean
returnValue = Me.CanDeleteItem(deleteOperation)
protected virtual bool CanDeleteItem(
__VSDELETEITEMOPERATION deleteOperation
)
protected:
virtual bool CanDeleteItem(
__VSDELETEITEMOPERATION deleteOperation
)
protected function CanDeleteItem(
deleteOperation : __VSDELETEITEMOPERATION
) : boolean
Parameters
deleteOperation
Type: Microsoft.VisualStudio.Shell.Interop.__VSDELETEITEMOPERATIONThe operation to be performed (delete from storage or remove from project).
Return Value
Type: System.Boolean
Returns CanProjectDeleteItems().
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.