Partager via


IVsRefactorNotify.OnBeforeRemoveParams Method

Definition

Called when a method is about to have the parameters removed.

public:
 int OnBeforeRemoveParams(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::String ^ lpszRQName, System::UInt32 cParamIndexes, cli::array <System::UInt32> ^ rgParamIndexes, [Runtime::InteropServices::Out] Array ^ % prgAdditionalCheckoutVSITEMIDs);
public int OnBeforeRemoveParams (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, string lpszRQName, uint cParamIndexes, uint[] rgParamIndexes, out Array prgAdditionalCheckoutVSITEMIDs);
abstract member OnBeforeRemoveParams : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * uint32 * uint32[] * Array -> int
Public Function OnBeforeRemoveParams (pHier As IVsHierarchy, itemid As UInteger, lpszRQName As String, cParamIndexes As UInteger, rgParamIndexes As UInteger(), ByRef prgAdditionalCheckoutVSITEMIDs As Array) As Integer

Parameters

pHier
IVsHierarchy

A hierarchy of the designer-owned item associated with the file that the language service changed.

itemid
UInt32

The VSITEMID of the designer-owned item associated with the file that the language service changed.

lpszRQName
String

A method that has parameters removed.

cParamIndexes
UInt32

The number of parameters removed.

rgParamIndexes
UInt32[]

An array of parameter indexes where each value indicates the index of the parameter being removed.

prgAdditionalCheckoutVSITEMIDs
Array

An array of VSITEMIDs to be checked out during the remove parameter operation, if the IVsRefactorNotify implementer must modify additional files as a part of the refactoring operation. Implementers must return the VSITEMID of the designer-owned item, if that file is modified during the refactoring operation.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT OnBeforeRemoveParams(  
    [in] IVsHierarchy *pHier,  
    [in] VSITEMID itemid,  
    [in] LPCOLESTR lpszRQName,  
    [in] ULONG cParamIndexes,  
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[],  
    [out, retval] SAFEARRAY(VSITEMID)* prgAdditionalCheckoutVSITEMIDs);  

Applies to