OK, I think that error is coming from the Enum.
Can you check your script references? You'll need an entry for Microsoft.SqlServer.ManagedDTS.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.