ManagedTagProvider UDTs

I'm going to have a couple repeatable datatypes for a module I'm working on, and I would like to define them as UDTs so that users can override specific members to add history/alarms/tag event scripts. I've managed to make a single UDT, but I'm not sure how to add members to that UDT using the ManagedTagProvider API? Would I be able to get a brief example from somebody to build a UDT with a single member tag?