An assembly having an electric switching function, comprises a switch device which has associated electric conductors and a movable actuating part, on which a hood member is mounted, and which is provided in a housing comprised by an outer injection-molded body; the hood member has its rim resting on a first injection-molded synthetic material body that fixes and partially encloses the electric conductors, and is sealingly connected to the first injection-molded synthetic material body by means of the outer, second injection-molded synthetic material body that both covers the rim of the hood member and also adjoins the first injection-molded synthetic material body.