Inserts a class or interface into the collection by modifying the code that the collection describes. The method's parameters allow specification of the name of the new class, whether the class or interface keyword should be used, and the position at which to insert the class into the collection.
Syntax
HRESULT Add([in] BSTR bstrName, [in] VARIANT_BOOL bClass, [in] long nIndex, [out, retval] IJavaClass** retval);
Function Add(ByVal bstrName As String, ByVal bClass As Boolean, ByVal nIndex As Long) As IJavaClass
Parameters
bstrName
The name of the new class.
bClass
Indicates whether a new class or interface is to be inserted.
nIndex
The index of the existing class before which the new class is to be inserted. To insert the new class at the end of the collection, pass –1 as the index.