Roll out the pastry, and use it to line a 9 in / 23 cm. flan tin. Scatter the ham over the base. Beat the egg yolks and milk together, and stir in the rest of the ingredients. Pour into the pastry shell. Place the flan tin on a baking sheet and bake in a preheated oven at 200°C / 400°F / Mark 6 for 10–15 minutes, and then at 180°C / 350°F / Mark 4 for 30–35 minutes or until a skewer inserted in the centre comes out clean. Remove from the oven, and cool on a wire rack before serving.