Saute onions in margarine; place in pie shell. Mix eggs, milk, and seasonings. Pour over onions. Sprinkle cheese on top. Bake at 350 degrees for 45 minutes, or until knife inserted in center comes out clean.