The current (iOS 5) definition is:
@property (nonatomic, readonly) UIDeviceOrientation orientation
So even if there is a setter (setOrientation: or .orientation =) it would be private API as the official documentation says it doesn't exist. And using private API will get you rejected.