共用方式為


IVsHierarchyRefactorNotify.OnAddParams Method

Definition

Called after a method had parameters added.

public:
 int OnAddParams(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(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(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 (uint itemid, string lpszRQName, uint cParams, uint[] rgszParamIndexes, string[] rgszRQTypeNames, string[] rgszParamNames);
abstract member OnAddParams : uint32 * string * uint32 * uint32[] * string[] * string[] -> int
Public Function OnAddParams (itemid As UInteger, lpszRQName As String, cParams As UInteger, rgszParamIndexes As UInteger(), rgszRQTypeNames As String(), rgszParamNames As String()) As Integer

Parameters

itemid
UInt32

The VSITEMID that identifies the affected file.

lpszRQName
String

The 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] 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