共用方式為


IVsTaskItem.CanDelete(Int32) Method

Definition

Determines whether a task item can be deleted.

public:
 int CanDelete([Runtime::InteropServices::Out] int % pfCanDelete);
int CanDelete([Runtime::InteropServices::Out] int & pfCanDelete);
public int CanDelete (out int pfCanDelete);
abstract member CanDelete : int -> int
Public Function CanDelete (ByRef pfCanDelete As Integer) As Integer

Parameters

pfCanDelete
Int32

[out, retval] If true, then the task item can be deleted. If false, then the item cannot be deleted.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem::CanDelete(  
   [out, retval]BOOL *pfCanDelete  
);  

Applies to