You can use the PassthruRdbQuery in this way, although the parameter placeholder names in the ParameterizedSql need to be correct for the database provider. If you're using the OleDb provider then "?" is the correct placeholder. You can obtain the provider-specific name by calling rdbKey.AdoHelper.GetParameterPlaceHolderName(parm).
You can instead use a StoredProcRdbQuery for this, which might be a bit simpler. You can create the query like this:
Dim query as New StoredProcRdbQuery("security", "GetNextAvailableId", yourdynamicType)
and then add the parameters to the query.