Partager via


IVsRefactorNotify.OnAddParams Method

Definition

Called after a method had the parameters added.

public:
 int OnAddParams(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::UInt32 itemid, System::String ^ lpszRQName, System::UInt32 cParams, cli::array <System::UInt32> ^ rgszParamIndexes, cli::array <System::String ^> ^ rgszRQTypeNames, cli::array <System::String ^> ^ rgszParamNames);
public:
 int OnAddParams(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, unsigned int itemid, Platform::String ^ lpszRQName, unsigned int cParams, Platform::Array <unsigned int> ^ rgszParamIndexes, Platform::Array <Platform::String ^> ^ rgszRQTypeNames, Platform::Array <Platform::String ^> ^ rgszParamNames);
int OnAddParams(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, unsigned int itemid, std::wstring const & lpszRQName, unsigned int cParams, std::Array <unsigned int> const & rgszParamIndexes, std::Array <std::wstring const &> const & rgszRQTypeNames, std::Array <std::wstring const &> const & rgszParamNames);
public int OnAddParams (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, uint itemid, string lpszRQName, uint cParams, uint[] rgszParamIndexes, string[] rgszRQTypeNames, string[] rgszParamNames);
abstract member OnAddParams : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * uint32 * uint32[] * string[] * string[] -> int
Public Function OnAddParams (pHier As IVsHierarchy, itemid As UInteger, lpszRQName As String, cParams As UInteger, rgszParamIndexes As UInteger(), rgszRQTypeNames As String(), rgszParamNames As String()) 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 added.

cParams
UInt32

The number of parameters added.

rgszParamIndexes
UInt32[]

The indexes of the new parameters.

rgszRQTypeNames
String[]

The types of the new parameters.

rgszParamNames
String[]

The names of the new parameters.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT OnAddParams(  
    [in] IVsHierarchy *pHier,  
    [in] VSITEMID itemid,  
    [in] LPCOLESTR lpszRQName,  
    [in] ULONG cParams,  
    [in, size_is(cParams)] ULONG rgszParamIndexes[],  
    [in, size_is(cParams)] LPCOLESTR rgszRQTypeNames[],  
    [in, size_is(cParams)] LPCOLESTR rgszParamNames[]);  

Applies to