IVsHierarchyRefactorNotify.OnBeforeReorderParams 方法

定义

当方法要重新排序参数时调用。

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

参数

itemid
UInt32

标识受影响的文件的 VSITEMID。

lpszRQName
String

重新排序了参数的方法。

cParamIndexes
UInt32

重新排序的参数的数目。

rgParamIndexes
UInt32[]

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

promptContinueOnFail
Int32

true 如果一个或多个实现失败,则提示用户继续重新排序操作 IVsRefactorNotify ; 否则为 false

返回

Int32

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

注解

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

E_ABORT

OLE_E_PROMPTSAVECANCELLED

OLECMDERR_E_CANCELED

HR_E_CSHARP_USER_CANCEL

COM 签名

从 vsshell80:

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

适用于