Which method ensures that the WriteProperties event is fired?