IVsHierarchyRefactorNotify.OnReorderParams 方法

定义

在方法重新排序了参数后调用。

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

参数

itemid
UInt32

标识受影响的文件的 VSITEMID。

lpszRQName
String

重新排序了参数的方法。

cParamIndexes
UInt32

重新排序的参数的数目。

rgParamIndexes
UInt32[]

参数索引的数组。 索引定义了在重新排序后参数的位置。 索引处的值定义参数在重新排序之前的位置。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

若要停止重新排序操作,HRESULT 必须包含以下错误代码之一:

E_ABORT

OLE_E_PROMPTSAVECANCELLED

OLECMDERR_E_CANCELED

HR_E_CSHARP_USER_CANCEL

COM 签名

从 vsshell80:

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

适用于