IVsRefactorNotify.OnAddParams Method

Called after a method had the parameters added.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
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
'使用
Dim instance As IVsRefactorNotify
Dim pHier As IVsHierarchy
Dim itemid As UInteger
Dim lpszRQName As String
Dim cParams As UInteger
Dim rgszParamIndexes As UInteger()
Dim rgszRQTypeNames As String()
Dim rgszParamNames As String()
Dim returnValue As Integer

returnValue = instance.OnAddParams(pHier, _
    itemid, lpszRQName, cParams, rgszParamIndexes, _
    rgszRQTypeNames, rgszParamNames)
int OnAddParams(
    IVsHierarchy pHier,
    uint itemid,
    string lpszRQName,
    uint cParams,
    uint[] rgszParamIndexes,
    string[] rgszRQTypeNames,
    string[] rgszParamNames
)
int OnAddParams(
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] String^ lpszRQName, 
    [InAttribute] unsigned int cParams, 
    [InAttribute] array<unsigned int>^ rgszParamIndexes, 
    [InAttribute] array<String^>^ rgszRQTypeNames, 
    [InAttribute] array<String^>^ rgszParamNames
)
function OnAddParams(
    pHier : IVsHierarchy, 
    itemid : uint, 
    lpszRQName : String, 
    cParams : uint, 
    rgszParamIndexes : uint[], 
    rgszRQTypeNames : String[], 
    rgszParamNames : String[]
) : int

Parameters

  • itemid
    Type: System.UInt32

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

  • lpszRQName
    Type: System.String

    A method that has parameters added.

  • rgszParamIndexes
    Type: []

    The indexes of the new parameters.

  • rgszRQTypeNames
    Type: []

    The types of the new parameters.

  • rgszParamNames
    Type: []

    The names of the new parameters.

Return Value

Type: System.Int32

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[]);

Permissions

See Also

Reference

IVsRefactorNotify Interface

IVsRefactorNotify Members

Microsoft.VisualStudio.Shell.Interop Namespace