§ 10. Injunction against joint-stock association. An injunction order, suspending the general and ordinary business of a joint-stock association, consisting of seven or more persons, or suspending from office, or restraining from the performance of his duties, a trustee, director, or other officer thereof, can be granted only by the court, upon notice of the application therefor, to the proper officer of the association, or to the trustee, director, or other officer enjoined. If such an injunction order is made, otherwise than as prescribed in this section, it is void.