Use int instead of enumeration to support both Mono 2.10 and Mono 3.0.