IVsHierarchyRefactorNotify.OnBeforeRemoveParams Method

Called when a method is about to have parameters removed.

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

Syntax

'Declaration
Function OnBeforeRemoveParams ( _
    itemid As UInteger, _
    lpszRQName As String, _
    cParamIndexes As UInteger, _
    rgParamIndexes As UInteger(), _
    promptContinueOnFail As Integer _
) As Integer
'Usage
Dim instance As IVsHierarchyRefactorNotify 
Dim itemid As UInteger 
Dim lpszRQName As String 
Dim cParamIndexes As UInteger 
Dim rgParamIndexes As UInteger()
Dim promptContinueOnFail As Integer 
Dim returnValue As Integer 

returnValue = instance.OnBeforeRemoveParams(itemid, _
    lpszRQName, cParamIndexes, rgParamIndexes, _
    promptContinueOnFail)
int OnBeforeRemoveParams(
    uint itemid,
    string lpszRQName,
    uint cParamIndexes,
    uint[] rgParamIndexes,
    int promptContinueOnFail
)
int OnBeforeRemoveParams(
    [InAttribute] unsigned int itemid, 
    [InAttribute] String^ lpszRQName, 
    [InAttribute] unsigned int cParamIndexes, 
    [InAttribute] array<unsigned int>^ rgParamIndexes, 
    [InAttribute] int promptContinueOnFail
)
function OnBeforeRemoveParams(
    itemid : uint, 
    lpszRQName : String, 
    cParamIndexes : uint, 
    rgParamIndexes : uint[], 
    promptContinueOnFail : int
) : int

Parameters

  • itemid
    Type: System.UInt32

    The VSITEMID that identifies the affected file.

  • lpszRQName
    Type: System.String

    The method that has parameters removed.

  • cParamIndexes
    Type: System.UInt32

    The number of parameters removed.

  • rgParamIndexes
    Type: array<System.UInt32[]

    The indexes of removed parameters.

  • promptContinueOnFail
    Type: System.Int32

    true to prompt the user to continue the remove operation if one or more IVsRefactorNotify implementers fails; otherwise, false.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

To stop the remove 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 OnBeforeRemoveParams(
    [in] VSITEMID itemid,                               
    [in] LPCOLESTR lpszRQName,                          
    [in] ULONG cParamIndexes,                           
    [in, size_is(cParamIndexes)] ULONG rgParamIndexes[],
    [in] BOOL promptContinueOnFail);                    

.NET Framework Security

See Also

Reference

IVsHierarchyRefactorNotify Interface

IVsHierarchyRefactorNotify Members

Microsoft.VisualStudio.Shell.Interop Namespace