an ComponentParameterBag
an ParameterKind to search for
the index of the first parameter of the given kind, or value out of bounds, if such parameter cannot be found
kind