IVsRefactorNotify.OnReorderParams Method

Called after a method had the parameters reordered.

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

Syntax

‘선언
Function OnReorderParams ( _
    pHier As IVsHierarchy, _
    itemid As UInteger, _
    lpszRQName As String, _
    cParamIndexes As UInteger, _
    rgParamIndexes As UInteger() _
) As Integer
‘사용 방법
Dim instance As IVsRefactorNotify
Dim pHier As IVsHierarchy
Dim itemid As UInteger
Dim lpszRQName As String
Dim cParamIndexes As UInteger
Dim rgParamIndexes As UInteger()
Dim returnValue As Integer

returnValue = instance.OnReorderParams(pHier, _
    itemid, lpszRQName, cParamIndexes, _
    rgParamIndexes)
int OnReorderParams(
    IVsHierarchy pHier,
    uint itemid,
    string lpszRQName,
    uint cParamIndexes,
    uint[] rgParamIndexes
)
int OnReorderParams(
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] String^ lpszRQName, 
    [InAttribute] unsigned int cParamIndexes, 
    [InAttribute] array<unsigned int>^ rgParamIndexes
)
abstract OnReorderParams : 
        pHier:IVsHierarchy * 
        itemid:uint32 * 
        lpszRQName:string * 
        cParamIndexes:uint32 * 
        rgParamIndexes:uint32[] -> int 
function OnReorderParams(
    pHier : IVsHierarchy, 
    itemid : uint, 
    lpszRQName : String, 
    cParamIndexes : uint, 
    rgParamIndexes : uint[]
) : 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 reordered.
  • cParamIndexes
    Type: System.UInt32
    The number of parameters reordered.
  • rgParamIndexes
    Type: array<System.UInt32[]
    An array of parameter indexes. The index indicates the position of the parameter after reordering. The value at the index indicates the position of the parameter before reordering.

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 OnReorderParams(
    [in] IVsHierarchy *pHier,
    [in] VSITEMID itemid,
    [in] LPCOLESTR lpszRQName,
    [in] ULONG cParamIndexes,
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[]);

.NET Framework Security

See Also

Reference

IVsRefactorNotify Interface

IVsRefactorNotify Members

Microsoft.VisualStudio.Shell.Interop Namespace