This brief proposes a resilient distributed sampled-data control method to achieve the voltage synchronization of connected inverter (CI) networks against denial of service (DoS) attacks. In practical CI networks, the continuous communication among cooperative and connected inverters may be result in high communication traffic, which is also vulnerable to the DoS attacks. To this end, the proposed distributed resilient sampled-data control method can synchronize CIs' output voltages to track the reference state exponentially, even if the sparse communication is subject to DoS attacks. Specifically, in order to effectively deal with the time-varying sampling and against malicious attacks simultaneously, the sampled-data CI system is transformed into the switched time-delay CI system. By employing the Lyapunov stability theory, and the Jensen's Inequality method, the criteria for sampling interval boundedness considering DoS attacks is derived for the stable operation of closed-loop CI system. Finally, simulation results are carried out in MATLAB/SimPower Systems to verify the effectiveness of the proposed control method.