IJavaMethod::AddFormal

Adds a new formal parameter to the method.

Syntax

HRESULT AddFormal([in] BSTR pType, [in] BSTR bstrName, [in] long nIndex);

Sub AddFormal(ByVal pType As String, ByVal bstrName As String, ByVal nIndex As Long)

Parameters

pType

The type signature for the new formal parameter.

bstrName

The name of the new formal parameter.

nIndex

The index of the existing formal parameter after which to insert the new one. To insert a new parameter at the end of the list, pass –1 as the index.