Added SetOptions method to .NET wrapper.
Added setOptions method to Java wrapper.