I'm building a webpart that communicate through connections.

Depending on some condition, I would like to add (or remove) connection points of the webpart.

Let's say I would like to do this:

The user sets the property of the webpart to "Add consumed values" to 5.

This has the effect that the webpart gets 5 consumer connection points.

The user now connects the webpart to 5 providers on the same page, using the WSS connection UI.

The webparts adds the 5 consumed values and shows it to the user.

(A silly example, but it shows the point).

Is this possible Or am I going the wrong way