That's not the gerund. That's its identical cousin, the participle. If it were a gerund, then you would use the genitive form "my":
- The likelihood of my doing this is small
In this example, "doing this" is a gerund phrase. "My" modifies the gerund phrase. The modified gerund phrase is the object of the preposition "of".
- The likelihood of me doing this is small
In this example, "doing this" is a participial phrase. Participial phrases can modify nouns. This participial phrase modifies "me". The modified objective personal pronoun is the object of the preposition "of".
Because there's no visible difference between the gerund and the so-called present participle, it almost looks like "me" and "my" are doing the same job. They aren't. The "me" acts as a modified object; the "my" acts as an object modifier. Of course, in both cases you end up with some modified object for the preposition "for". The overall meaning of each is much the same, and the choice between them is often no more than a question of stylistic convention.
If it helps, my personal preference is for the gerund construction. I prefer the action, rather than the person, to be the literal object.
2It's much less common, but you can actually replace "me" with "my" in all of these cases (and some can argue it's the "correct" choice). I'm not sure the history but I'm guessing that "my" used to be the common choice and slowly switched over to "me". – Catija – 2015-04-27T16:57:18.977
2This question on ELU might help. – Catija – 2015-04-27T16:57:59.203
Related: http://ell.stackexchange.com/q/43384/3281
– Damkerng T. – 2015-04-27T20:31:31.780