IVsHierarchyRefactorNotify.OnBeforeRemoveParams 方法

定义

当方法将要移除参数时调用。

public:
 int OnBeforeRemoveParams(System::UInt32 itemid, System::String ^ lpszRQName, System::UInt32 cParamIndexes, cli::array <System::UInt32> ^ rgParamIndexes, int promptContinueOnFail);
public:
 int OnBeforeRemoveParams(unsigned int itemid, Platform::String ^ lpszRQName, unsigned int cParamIndexes, Platform::Array <unsigned int> ^ rgParamIndexes, int promptContinueOnFail);
int OnBeforeRemoveParams(unsigned int itemid, std::wstring const & lpszRQName, unsigned int cParamIndexes, std::Array <unsigned int> const & rgParamIndexes, int promptContinueOnFail);
public int OnBeforeRemoveParams (uint itemid, string lpszRQName, uint cParamIndexes, uint[] rgParamIndexes, int promptContinueOnFail);
abstract member OnBeforeRemoveParams : uint32 * string * uint32 * uint32[] * int -> int
Public Function OnBeforeRemoveParams (itemid As UInteger, lpszRQName As String, cParamIndexes As UInteger, rgParamIndexes As UInteger(), promptContinueOnFail As Integer) As Integer

参数

itemid
UInt32

标识受影响的文件的 VSITEMID。

lpszRQName
String

移除了参数的方法。

cParamIndexes
UInt32

删除的参数的数目。

rgParamIndexes
UInt32[]

已移除的参数的索引。

promptContinueOnFail
Int32

true 如果一个或多个实现失败,则提示用户继续执行删除操作 IVsRefactorNotify ,则为; 否则为 false

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

若要停止删除操作,HRESULT 必须包含以下错误代码之一:

E_ABORT

OLE_E_PROMPTSAVECANCELLED

OLECMDERR_E_CANCELED

HR_E_CSHARP_USER_CANCEL

COM 签名

从 vsshell80:

HRESULT OnBeforeRemoveParams(  
    [in] VSITEMID itemid,                                 
    [in] LPCOLESTR lpszRQName,                            
    [in] ULONG cParamIndexes,                             
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[],  
    [in] BOOL promptContinueOnFail);                      

适用于