In most cases shape.Parent is the slide that contains the shape.
However, if you try to delete a a group and then press on undo (the shapes will reappear) but the child shapes will throw exception for both .Parent and .ParentGroup.
How can I find out the slide ID of a shape in the case above?