(a) (1) If declaratory relief is sought, a person who has or claims any interest which would be affected by the declaration, shall be made a party.
(2) Except in a class action, the declaration may not prejudice the rights of any person not a party to the proceeding.
(b) In any proceeding which involves the validity of a municipal or county ordinance or franchise, the municipality or county shall be made a party and is entitled to be heard.
(c) If the statute, municipal or county ordinance, or franchise is alleged to be unconstitutional, the Attorney General need not be made a party but, immediately after suit has been filed, shall be served with a copy of the proceedings by certified mail. He is entitled to be heard, submit his views in writing within a time deemed reasonable by the court, or seek intervention pursuant to the Maryland Rules.
Structure Maryland Statutes
Courts and Judicial Proceedings
Title 3 - Courts of General Jurisdiction -- Jurisdiction/special Causes of Action
Subtitle 4 - Declaratory Judgment
Section 3-401 - "Person" Defined
Section 3-402 - Purpose and Construction of Subtitle
Section 3-405 - Parties; Role of Attorney General
Section 3-406 - Power to Construe
Section 3-407 - Construction of Contracts Before or After Breach
Section 3-408.1 - Land Patent Proceedings
Section 3-409 - Discretionary Relief
Section 3-411 - Form and Effect of Declaration
Section 3-412 - Supplementary Relief