Udostępnij za pośrednictwem


IVsHierarchyRefactorNotify.OnBeforeRemoveParams Method

Definition

Called when a method is about to have parameters removed.

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

Parameters

itemid
UInt32

The VSITEMID that identifies the affected file.

lpszRQName
String

The method that has parameters removed.

cParamIndexes
UInt32

The number of parameters removed.

rgParamIndexes
UInt32[]

The indexes of removed parameters.

promptContinueOnFail
Int32

true to prompt the user to continue the remove operation if one or more IVsRefactorNotify implementers fails; otherwise, false.

Returns

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

Remarks

To stop the remove operation, the HRESULT must contain one of the following error codes:

E_ABORT

OLE_E_PROMPTSAVECANCELLED

OLECMDERR_E_CANCELED

HR_E_CSHARP_USER_CANCEL

COM Signature

From vsshell80.idl:

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

Applies to