IVsHierarchyRefactorNotify::OnReorderParams Method (UInt32, String^, UInt32, array<UInt32>^)

 

Called after a method had parameters reordered.

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

int OnReorderParams(
	unsigned int itemid,
	String^ lpszRQName,
	unsigned int cParamIndexes,
	array<unsigned int>^ rgParamIndexes
)

Parameters

itemid
Type: System::UInt32

The VSITEMID that identifies the affected file.

lpszRQName
Type: System::String^

The 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 defines the position of the parameter after reordering. The value at the index defines 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.

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

From vsshell80.idl:

HRESULT OnReorderParams(
    [in] VSITEMID itemid,                                
    [in] LPCOLESTR lpszRQName,                           
    [in] ULONG cParamIndexes,                            
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[]);
Return to top
Show: