Compartilhar via


IVsHierarchyRefactorNotify.OnReorderParams Method

Definition

Called after a method had parameters reordered.

public:
 int OnReorderParams(System::UInt32 itemid, System::String ^ lpszRQName, System::UInt32 cParamIndexes, cli::array <System::UInt32> ^ rgParamIndexes);
public:
 int OnReorderParams(unsigned int itemid, Platform::String ^ lpszRQName, unsigned int cParamIndexes, Platform::Array <unsigned int> ^ rgParamIndexes);
int OnReorderParams(unsigned int itemid, std::wstring const & lpszRQName, unsigned int cParamIndexes, std::Array <unsigned int> const & rgParamIndexes);
public int OnReorderParams (uint itemid, string lpszRQName, uint cParamIndexes, uint[] rgParamIndexes);
abstract member OnReorderParams : uint32 * string * uint32 * uint32[] -> int
Public Function OnReorderParams (itemid As UInteger, lpszRQName As String, cParamIndexes As UInteger, rgParamIndexes As UInteger()) As Integer

Parameters

itemid
UInt32

The VSITEMID that identifies the affected file.

lpszRQName
String

The method that has parameters reordered.

cParamIndexes
UInt32

The number of parameters reordered.

rgParamIndexes
UInt32[]

An array of parameter indexes. The index defines the position of the parameter after reordering. The value at the index defines the position of the parameter before reordering.

Returns

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

Remarks

To stop the reorder operation, the HRESULT must contain one of the following error codes:

E_ABORT

OLE_E_PROMPTSAVECANCELLED

OLECMDERR_E_CANCELED

HR_E_CSHARP_USER_CANCEL

COM Signature

From vsshell80.idl:

HRESULT OnReorderParams(  
    [in] VSITEMID itemid,                                  
    [in] LPCOLESTR lpszRQName,                             
    [in] ULONG cParamIndexes,                              
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[]);  

Applies to