Plaintiffs are 36 Police Officers of the Housing Authority Police Department of the New York City Housing Authority who seek a declaratory judgment that the provisions of the New York Public Officers Law which require public officers to be residents of New York State are inapplicable to Housing Authority Police Officers, and that memoranda issued by the Chief of the Housing Authority Police Department in enforcement of this residency requirement are unconstitutional and unlawful. An injunction, permanently and pendente lite is also sought against enforcement of the said memoranda.1 Upon plaintiffs moving for an injunction pendente lite staying the defendants from implementing or enforcing the residency requirements imposed by Memorandum No. 58, dated December 7, 1978, issued by New York City Housing Authority Police Department Chief Benjamin Ward, the defendants moved for judgment dismissing the complaint pursuant to CPLR 3211 (subd [a], par 7) for failure to state a cause of action. Plaintiffs cross-moved for an order pursuant to CPLR 3211 (subd [c]) granting them summary judgment against the defendants. CPLR 3211 (subd [c]) provides, in pertinent part: "Whether or not issue has been joined, the court, after adequate notice to the parties, may treat the motion as a motion for summary judgment.” Special Term elected not to treat the plaintiffs’ motion for an injunction pendente lite and the defendants’ motion to dismiss as involving summary judgment relief. Specifically, Special Term noted: "Plaintiffs’ cross-motion for summary judgment is denied as premature, without prejudice to renewal upon joinder of issue.”
Special Term found, and we agree, that Housing Authority Police Officers (such as plaintiffs) are subject to the residency requirements of the Public Officers Law.2 (See Matter of Maye v Lindsay, 69 Misc 2d 276, revd 41 AD2d 127, reinstated on opn of Special Term 33 NY2d 552.)
Justice Birns’ concurrence in the majority is solely based on the conclusion that no constraint is imposed by Matter of Maye v Lindsay (supra). Such conclusion is unwarranted. That case clearly involved an article 78 proceeding to invalidate the actions of respondents therein, in relation to the "Model Cities *418Program,” to provide residents of Model Cities areas with preferential treatment in obtaining civil service appointment to, inter alia, the Housing Authority Police. Among the petitioners was the President of the Housing Authority Patrolmen of the City of New York in his individual and representative capacity. Said petitioners contended that the residence requirement published in connection with the open competitive examination for the title of Aide (M.C.) limiting the applications to residents of Model Cities areas ran afoul of the residence requirements of sections 3 and 30 of the Public Officers Law. Relevant to petitioner Housing Authority Patrolmen, it was argued that after six months the Aide (M.C.) would be eligible to compete in a promotion examination for •the position of Patrolman, New York City Housing Authority Police Department (Model Cities) or Police Trainee New York City Housing Authority Police Department (Model Cities). From the position of Patrolman New York City Housing Authority Police Department (Model Cities) an individual would be eligible to compete in promotional examinations for regular higher ranks in the New York City Housing Authority police service. Section 3 of the Public Officers Law, entitled "Qualifications for holding office” states, in pertinent part, that "[n]o person shall be capable of holding a civil office who shall not ***bea*** resident of the state, and if it be a local office, a resident of the political subdivision or municipal corporation of the state for which he shall be chosen * * * or within which his official functions are required to be exercised”. (Emphasis supplied.)
Thus, a distinction is made as to the location of the office in a political subdivision or municipal corporation of the State and as to the location of the exercise of required official functions in a political subdivision or municipal corporation of the State. As the court (Silverman, J.) perspicaciously noted, "[t]he whole point of the creation of the position of Aide (M.C.) is eligibility for promotion to * * * Patrolman New York City Housing Authority, Police Department (M.C.), and indeed, further eligibility for promotion to the higher ranks” (Matter of Maye v Lindsay, supra, at p 283).
Concluding that the office of Patrolman of the New York City Housing Authority Police Department is within the ambit of sections 3 and 30 of the Public Officers Law, Special Term found the residence requirements for Model Cities positions in the city civil service to be in noncompliance with other State *419statutes, i.e., violative of "the special provisions of sections 3 and 30 of the Public Officers Law forbidding residence requirements for policemen * * * more restrictive than those set forth in the statutes” (at p 284). The Court of Appeals did not merely adopt the result of Special Term’s rationale, it adopted that rationale by reinstating that result "on the opinion at Special Term” (33 NY2d 552, 553).
The holding in Matter of Maye v Lindsay (supra) was not limited merely to the characterization that the adoption of a Model Cities program by Congress did not override State legislation; it held, also, that the residence requirement of the Model Cities program developed by New York City violated the residence requirements of the Public Officers Law forbidding residence requirements for, inter alia, Housing Authority Patrolmen, more restrictive than those set forth in the statute. Absent rejection of this aspect of Special Term’s holding in Maye by the Court of Appeals and in light of the adoption of such holding by that court, settled principles of stare decisis mandate recognition of the constraint imposed by the Court of Appeals determination. Thus, the finding by Special Term in Maye that Housing Authority Police Officers are subject to the Public Officers Law is not obiter dictum, but is essential to one of the key twin predicates for the result reached, i.e., to the conclusion that the Model Cities residency requirements respecting Housing Authority Police violated the Public Officers Law and was, therefore, invalid. Obviously, if the Public Officers Law did not apply to Housing Authority Police, the Model Cities residency requirements would not be violative of that State statute regarding such police and this distinction would have to be noted. To reiterate, not only did the Court of Appeals refuse to make this distinction, it adopted the reasoning of Special Term.
However, this does not end the inquiry, because subsumed within the issue of whether the residency requirements of the Public Officers Law encompass Housing Authority Police is the issue of whether the residency requirement should be enforced against these plaintiffs.
On December 16, 1952, when the authority established a Housing Police Force, the members of that force were deemed to be only special patrolmen whose police functions were strictly limited to authority property. Since that time, a series of legislative enactments has resulted in substantial conformity of the status, duties and responsibilities of Housing Police *420Officers with those of other police officers within the State of New York. Plaintiffs were at the times of their respective appointments to the Housing Police Force, residents of the State of New York. Thereafter, each of them established residence outside of New York State in either of the neighboring States of New Jersey or Connecticut. Plaintiffs point out that the notices of examination for the examination each underwent to obtain the position of Housing Police Officer did not set forth residency requirements, while notices of examination for the Transit Police and in the Correction Department did specify the Public Officers Law residency requirements. Further, plaintiffs assert that prior to December 7, 1978, they were informed by members of the Housing Authority Police Department that they were not required to live within the State of New York, which information preceded relocation by plaintiffs to New Jersey and Connecticut for residence purposes. It appears that most, if not all, of the plaintiffs obtained private homes out of State in reliance on this information and with the active co-operation of the Housing Authority and its Police Department. Personal data questionnaires were filed by plaintiffs on an annual basis and, when appropriate, a change of address form was also filed. It is asserted that defendants actively aided several of the plaintiffs in obtaining mortgages on the out-of-State residences and in other incidental matters, such as the obtaining of pistol permits from these sister States and the obtaining of New York driver’s licenses as out-of-State residents. Many of the plaintiffs were promoted after acquiring their out-of-State residences with those responsible for implementing the promotion having knowledge of such residences.3
According to plaintiffs, it was the issuance of Memorandum No. 58, dated December 7, 1978, by Housing Police Chief Benjamin Ward which, for the first time, imposed on them strict compliance with the residency requirement as a condition of their continued employment.
It is noted that section 3 of the Public Officers Law speaks of residency in the State in terms of qualification for holding *421civil office, while section 30 (subd 1, par d) specifically dictates that a vacancy in the office is created upon the incumbent’s "ceasing to be an inhabitant of the state.”
"Although the courts have recognized certain exceptions to the general rule that estoppel does not operate against the state and have taken the position that under some circumstances some varieties of estoppel may operate even against the state, the state cannot be estopped on any equitable grounds from exercising its sovereign powers; estoppel is not applicable to the state acting in a governmental capacity. The state in the exercise of its sovereign powers is not to be obstructed by the failure of its appointed agents or officers to obey its commands or by their unauthorized acts or omissions. An estoppel may not be invoked against public officials performing their legal duty” (21 NY Jur, Estoppel, § 76).
"A city, county, town or other governmental body or agency of the state, may be estopped the same as an individual, where it is acting in a corporate or proprietary capacity, but it cannot be estopped to assert its governmental power as to acts within its governmental capacity as an agency of the state” (21 NY Jur, Estoppel, § 78).
As aptly noted in Matter of Gavigan v McCoy (37 NY2d 548, 552): "We see no merit in the * * * contention, advanced at Special Term and * * * here, that [defendants] should be estopped * * * because [they] * * * knew of and consented to [plaintiffs’] performance of legal duties while [nonresidents]. It has often been held that estoppel does not lie against the State, a municipality or their agencies where, as here, the governmental body was exercising its statutory or regulatory authority, and this is true irrespective of any representation or opinion by any of that body’s officers or employees (City of New York v Wilson & Co., 278 NY 86, 99-100; Matter of Town of Cornwall v Diamond, 39 AD2d 762; see 21 NY Jur, Estoppel, § 76).”4
The fact that the plaintiffs’ conduct in leaving New York and assuming residency out-of-State was not covert, but deliberate, open and with the aid of defendant New York City Housing Authority Police Department does not warrant a different conclusion (see Matter of Gavigan v McCoy, supra).
Further, "[a]n erroneous application of law does not relieve *422a public official from the obligation to apply and enforce it correctly thereafter. (Rubel Corp. v City of New York, 73 NYS 813, affd 274 App Div 925.)” (Matter of Albert Simon, Inc. v Myerson, 36 NY2d 300, 303.) Of added import are the observations delineated in City of New York v Wilson & Co. (278 NY 86) which involved an action of ejectment brought by the city. The defendant therein claimed that the city was estopped from asserting its rights by virtue of reports of an engineer employed by the city and by the Corporation Counsel to the effect that defendant had acquired adverse possession and by the fact that subsequent to 1871 the city made a number of grants of land under water. The Court of Appeals declared (at pp 99-100): "In view of the manifest intent shown when chapter 574 of the Laws of 1871 is read in its entirety * * * which holds land under water as well as the piers and wharves inalienable from 1871 on, we are not bound by the reports of an engineer in the Dock Department of the City of New York in 1922, or of the Corporation Counsel in 1910 to the effect that the defendant had acquired adverse possession. Nor are we bound by the fact, that subsequent to 1871, the city made a number of grants of land under water. The city is not estopped from asserting its rights by these inconsistent acts, since the errors of law of city employees and officers are not binding upon the city. ” (Emphasis supplied.)5
It is well recognized in this State "that qualifications for public office may be established by the Legislature so long as these qualifications do not work arbitrary exclusions from office (Matter of Callahan, 200 N. Y. 59, 61; People ex rel. Devery v. Coler, 173 N. Y. 103, 118; Rogers v. Common Council of Buffalo, 123 N. Y. 173, 188.) * * * Residence has been a traditional qualification for holding public office in New York. (See Public Officers Law, § 3 * * *) It seems apparent that the object sought to be achieved by prescribing residency as a requirement for holding public office is to obtain public officials who are knowledgeable about and concerned with the affairs of the unit of government they seek to serve. Is there a reasonable relationship between residency and this legislative *423objective so that a classification between residents and nonresidents does not violate the equal protection doctrine of the Federal and State Constitutions? The court is of the opinion that such a relationship does exist.” (Matter of De Hond v Nyquist, 65 Misc 2d 526, 528-529.) Recently, the Court of Appeals in discussing the residency requirements embodied in CPLR 9406 (subd 2) for admission to the New York State Bar, declared: "it is settled that a State may not premise an individual’s right to engage in his chosen occupation within its borders solely on residence * * * This is not to say, of course, that the privileges and immunities clause forbids a State from ever differentiating between residents and nonresidents. Matters which directly implicate its sovereignty, such as voting (Dunn v Blumstein, 405 US 330) or entitlement to public office (Chimento v Stark, 414 US 802), furnish ready examples of areas in which a State may constitutionally condition eligibility upon residence” (Matter of Gordon, 48 NY2d 266, 271 [emphasis supplied]; see, also, Hendon v Board of Educ., 281 NY 757; cf. Matter of Contento v Kohinke, 42 AD2d 1025).
The full implication of the residency mandate embodied in the Public Officers Law may be gleaned from reading an informal opinion of the Attorney-General relevant to the residency requirement of police department personnel: "Public Officers Law, § 3(2) superseded all city and village charters, general, special and local laws and ordinances, rules and regulations relating to residency for appointment of police department personnel and can not be amended by local legislative action. It imposes a uniform state standard. However, Public Officers Law, § 30(4) authorizes local action in certain circumstances allowing a municipality to require police department personnel, after appointment, to reside in or near the municipality where serving. Different requirements apply to applicants and active police force members” (1974 Atty Gen [Inf Opns] 252; emphasis supplied).
It may, therefore, be concluded that the municipality has no power to amend the Public Officers Law to negate the Statewide standard of imposing residency within the State as a qualification for eligibility for office and continued retention in office as a member of a police force within the purview of that law. "A distinction is drawn * * * between municipal acts which are ultra vires in the primary sense—that is, utterly beyond the jurisdiction of the municipality, therefore precluding an estoppel based upon detriment in reliance—and munic*424ipal acts which are ultra vires in the secondary sense—that is, irregular exercises of a basic municipal power, which may be the basis for an estoppel” (Debold v Township of Monroe, 110 NJ Super 287, 295; see, also, Antieau, Municipal Corporation Law, § 16A.04).6
Accordingly, the order of the Supreme Court, New York County (Asch, J.), entered July 3, 1979, granting plaintiffs a preliminary injunction in this declaratory judgment action, denying the defendants’ motion to dismiss the complaint and denying the plaintiffs’ cross motion for summary judgment as premature, should be modified, on the law, to the extent of denying plaintiffs’ motion for an injunction pendente lite, and granting defendants’ motion to dismiss the complaint to the extent of granting them final judgment by way of judicial declaration that the memoranda issued by the Chief of Housing Authority Police on December 7, 1978 was constitutional, lawful and enforceable against plaintiffs, and, as so modified, the order should be affirmed.
Murphy, P. J., concurs with Ross, J.; Birns, J., concurs in a separate opinion; Fein and Lupiano, JJ., dissent in an opinion by Lupiano, J.
Order, Supreme Court, New York County, entered on July 3, 1979, modified, on the law, to the extent of declaring that Police Officers of the Housing Authority of the City of New York are public officers within the meaning of section 30 of the Public Officers Law and subject to the residency requirements therein, but defendants are equitably estopped from imposing these requirements on plaintiffs, and, as so modified, the order is affirmed, without costs and without disbursements.
. The "Wherefore” clause of the complaint seeks an order and judgment, inter alia: "(i) declaring and adjudging the memoranda to be unconstitutional, invalid, null and void, and of no force or effect; (ii) declaring and adjudging that the defendants are estopped and barred from asserting, implementing or enforcing the memoranda”.
. Public Officers Law, §§ 3, 30.
. Special Term’s decision noted that “Their [plaintiffs’] out-of-state residency has been overt rather than covert or clandestine. It is undisputed that the defendants have had actual, or at least constructive knowledge of plaintiffs’ out-of-state residency. Plaintiffs’ moving papers are replete with exhibits such as official letters addressed to them documenting defendants’ knowledge of plaintiffs’ out-of-state residency.”
. The introductory sentence of the quoted passage has been interpolated to reflect the facts of the instant appeal.
. While the doctrine of equitable estoppel applies to municipal corporations under certain circumstances, "it may not be invoked to prevent a municipality from disclaiming the unauthorized or unlawful acts of its employees and thereby give vitality to otherwise illegal conduct (Town of Guilderland v Swanson, 41 Misc 2d 398, mod 29 AD2d 717, affd 24 NY2d 872; Abell v Hunter, 211 App Div 467, affd 240 NY 702; People ex rel. Sweet v Board of Supervisors of St. Lawrence County, 101 App Div 327)” (Matter of Moritz v Board of Educ., 60 AD2d 161,166).
. For an analysis of principles governing application of equitable estoppel to municipality, embracing public policy and the rationale of Seif v City of Long Beach (286 NY 382; see Lutzken v City of Rochester, 7 AD2d 498).