IVsRefactorNotify.OnReorderParams Yöntem

Tanım

Bir yöntemin parametreleri yeniden sıralandıktan sonra çağırılır.

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

Parametreler

pHier
IVsHierarchy

, Dil hizmetinin değiştiği dosyayla ilişkili, tasarımcıya ait öğenin bir hiyerarşisi.

itemid
UInt32

Dille ilgili öğenin, dil hizmetinin değiştiği dosyayla ilişkili VSITEMID 'ı.

lpszRQName
String

Parametreleri yeniden sıralanan bir yöntem.

cParamIndexes
UInt32

Yeniden sıralanan parametre sayısı.

rgParamIndexes
UInt32[]

Parametre dizinleri dizisi. Dizin, yeniden sıralama sonrasında parametrenin konumunu gösterir. Dizindeki değer, yeniden sıralama yapmadan önce parametrenin konumunu gösterir.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell80. IDL adresinden:

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

Şunlara uygulanır