The various provisions of this chapter apply to administrative and ministerial officers, in the same manner as if they were mentioned therein.