public void SetApartmentState(ApartmentState state) { if (!TrySetApartmentState(state)) { throw GetApartmentStateChangeFailedException(); } }